diff --git a/gallery_dl/option.py b/gallery_dl/option.py index a046a277..5f7b2811 100644 --- a/gallery_dl/option.py +++ b/gallery_dl/option.py @@ -371,6 +371,16 @@ def build_parser(): action="append_const", const="metadata", help="Write metadata to separate JSON files", ) + 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", + ) postprocessor.add_argument( "--write-tags", dest="postprocessors",