summaryrefslogtreecommitdiffstats
path: root/gallery_dl/option.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-10-05 23:30:05 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2021-10-05 23:30:05 -0400
commit34ba2951b8c523713425c98addb9256ea05c946f (patch)
tree6ec7e96d0c6e6f6e94b6b97ecd8c0a414ceef93d /gallery_dl/option.py
parent3f5483df9075ae526f4c54f4cbe80edeabf6d4cc (diff)
New upstream version 1.19.0.upstream/1.19.0
Diffstat (limited to 'gallery_dl/option.py')
-rw-r--r--gallery_dl/option.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gallery_dl/option.py b/gallery_dl/option.py
index a046a27..5f7b281 100644
--- a/gallery_dl/option.py
+++ b/gallery_dl/option.py
@@ -372,6 +372,16 @@ def build_parser():
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",
action="append_const", const={"name": "metadata", "mode": "tags"},