restore -d/--dest functionality
change short option for --directory from -d to -D
This commit is contained in:
@@ -91,28 +91,28 @@ def build_parser():
|
||||
action="version", version=version.__version__,
|
||||
help="Print program version and exit",
|
||||
)
|
||||
general.add_argument(
|
||||
"--dest",
|
||||
dest="base-directory", metavar="DEST", action=ConfigAction,
|
||||
help=argparse.SUPPRESS,
|
||||
)
|
||||
general.add_argument(
|
||||
"-i", "--input-file",
|
||||
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(
|
||||
"-d", "--destination",
|
||||
dest="base-directory", metavar="PATH", action=ConfigAction,
|
||||
help="Target location for file downloads",
|
||||
)
|
||||
general.add_argument(
|
||||
"-D", "--directory",
|
||||
dest="directory", metavar="PATH",
|
||||
help="Exact location for file downloads",
|
||||
)
|
||||
general.add_argument(
|
||||
"-f", "--filename",
|
||||
dest="filename", metavar="FORMAT",
|
||||
help=("Filename format string for downloaded files "
|
||||
"('/O' for \"original\" filenames)"),
|
||||
)
|
||||
general.add_argument(
|
||||
"-d", "--directory",
|
||||
dest="directory", metavar="PATH",
|
||||
help="Target location for file downloads",
|
||||
)
|
||||
general.add_argument(
|
||||
"--cookies",
|
||||
dest="cookies", metavar="FILE", action=ConfigAction,
|
||||
|
||||
Reference in New Issue
Block a user