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

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