add '--zip' and '--ugoira-conv' command-line options

This commit is contained in:
Mike Fährmann
2018-06-18 18:14:38 +02:00
parent eb7a1f3b98
commit 709c5d466d

View File

@@ -251,6 +251,20 @@ def build_parser():
"and other delegated URLs"),
)
postprocessor = parser.add_argument_group("Post-processing Options")
postprocessor.add_argument(
"--zip",
action=ConfigConstAction, nargs=0,
dest="postprocessors", const=({"name": "zip"},),
help="Store downloaded files in a ZIP archive",
)
postprocessor.add_argument(
"--ugoira-conv",
action=ConfigConstAction, nargs=0,
dest="postprocessors", const=({"name": "ugoira"},),
help="Convert Pixiv Ugoira to WebM",
)
parser.add_argument(
"urls",
nargs="*", metavar="URL",