diff options
Diffstat (limited to 'gallery_dl/option.py')
| -rw-r--r-- | gallery_dl/option.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gallery_dl/option.py b/gallery_dl/option.py index 367b934..3e585fe 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright 2017-2020 Mike Fährmann +# Copyright 2017-2021 Mike Fährmann # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as @@ -98,8 +98,9 @@ def build_parser(): ) general.add_argument( "-i", "--input-file", - dest="inputfile", metavar="FILE", - help="Download URLs found in FILE ('-' for stdin)", + dest="inputfiles", metavar="FILE", action="append", + help=("Download URLs found in FILE ('-' for stdin). " + "More than one --input-file can be specified"), ) general.add_argument( "--cookies", @@ -136,9 +137,9 @@ def build_parser(): help="Print URLs instead of downloading", ) output.add_argument( - "-G", + "-G", "--resolve-urls", dest="list_urls", action="store_const", const=128, - help=argparse.SUPPRESS, + help="Print URLs instead of downloading; resolve intermediary URLs", ) output.add_argument( "-j", "--dump-json", @@ -151,6 +152,11 @@ def build_parser(): help="Simulate data extraction; do not download anything", ) output.add_argument( + "-E", "--extractor-info", + dest="jobtype", action="store_const", const=job.InfoJob, + help="Print extractor defaults and settings", + ) + output.add_argument( "-K", "--list-keywords", dest="jobtype", action="store_const", const=job.KeywordJob, help=("Print a list of available keywords and example values " |
