do not try to read from stdin when it is non-interactive (#5733)
add '--no-input' command-line option and 'input' config file option to allow users to manually configure this
This commit is contained in:
@@ -461,6 +461,17 @@ Description
|
||||
(see `getpass() <https://docs.python.org/3/library/getpass.html#getpass.getpass>`__).
|
||||
|
||||
|
||||
extractor.*.input
|
||||
-----------------
|
||||
Type
|
||||
``bool``
|
||||
Default
|
||||
``true`` if `stdin` is attached to a terminal ,
|
||||
``false`` otherwise
|
||||
Description
|
||||
Allow prompting the user for interactive input.
|
||||
|
||||
|
||||
extractor.*.netrc
|
||||
-----------------
|
||||
Type
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
-x, --input-file-delete FILE
|
||||
Download URLs found in FILE. Delete them after
|
||||
they were downloaded successfully.
|
||||
--no-input Do not prompt for passwords/tokens
|
||||
|
||||
## Output Options:
|
||||
-q, --quiet Activate quiet mode
|
||||
|
||||
Reference in New Issue
Block a user