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)
This commit is contained in:
@@ -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",
|
||||
@@ -385,15 +390,17 @@ def build_parser():
|
||||
action="append_const", const="metadata",
|
||||
help="Write metadata to separate JSON files",
|
||||
)
|
||||
postprocessor.add_argument(
|
||||
"--write-info-json",
|
||||
dest="postprocessors",
|
||||
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={
|
||||
"name" : "metadata",
|
||||
"event" : "init",
|
||||
"filename": "info.json",
|
||||
},
|
||||
help="Write gallery metadata to a info.json file",
|
||||
action="append_const", const=infojson,
|
||||
help=argparse.SUPPRESS,
|
||||
)
|
||||
postprocessor.add_argument(
|
||||
"--write-tags",
|
||||
|
||||
Reference in New Issue
Block a user