rename --write-infojson to --write-info-json

to be consistent with the name used in youtube-dl/yt-dlp
(the old --write-infojson still works)
pull/2089/head
Mike Fährmann 3 years ago
parent d441888bfb
commit 7bf1d3fd32
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -351,6 +351,11 @@ def build_parser():
"and other delegated URLs"),
)
infojson = {
"name" : "metadata",
"event" : "init",
"filename": "info.json",
}
postprocessor = parser.add_argument_group("Post-processing Options")
postprocessor.add_argument(
"--zip",
@ -386,15 +391,17 @@ def build_parser():
help="Write metadata to separate JSON files",
)
postprocessor.add_argument(
"--write-infojson",
"--write-info-json",
dest="postprocessors",
action="append_const", const={
"name" : "metadata",
"event" : "init",
"filename": "info.json",
},
action="append_const", const=infojson,
help="Write gallery metadata to a info.json file",
)
postprocessor.add_argument(
"--write-infojson",
dest="postprocessors",
action="append_const", const=infojson,
help=argparse.SUPPRESS,
)
postprocessor.add_argument(
"--write-tags",
dest="postprocessors",

Loading…
Cancel
Save