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:
@@ -256,6 +256,11 @@ def build_parser():
|
||||
help=("Download URLs found in FILE. "
|
||||
"Delete them after they were downloaded successfully."),
|
||||
)
|
||||
input.add_argument(
|
||||
"--no-input",
|
||||
dest="input", nargs=0, action=ConfigConstAction, const=False,
|
||||
help=("Do not prompt for passwords/tokens"),
|
||||
)
|
||||
|
||||
output = parser.add_argument_group("Output Options")
|
||||
output.add_argument(
|
||||
|
||||
Reference in New Issue
Block a user