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:
Mike Fährmann
2024-06-16 18:31:39 +02:00
parent 76385f5f18
commit a1bb32792b
4 changed files with 35 additions and 1 deletions

View File

@@ -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

View File

@@ -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