1
0
Fork 0

Add option --no-batch-file (#1335)

Authored by: Zirro
This commit is contained in:
Zirro 2021-10-18 21:11:07 +02:00 committed by GitHub
commit 1e520b5535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -971,6 +971,10 @@ def parseOpts(overrideArguments=None):
dest='batchfile', metavar='FILE',
help="File containing URLs to download ('-' for stdin), one URL per line. "
"Lines starting with '#', ';' or ']' are considered as comments and ignored")
filesystem.add_option(
'--no-batch-file',
dest='batchfile', action='store_const', const=None,
help='Do not read URLs from batch file (default)')
filesystem.add_option(
'-P', '--paths',
metavar='[TYPES:]PATH', dest='paths', default={}, type='str',