diff --git a/gallery_dl/option.py b/gallery_dl/option.py index 1faec220..0126228f 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -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",