add '--write-infojson' command-line option
This commit is contained in:
@@ -371,6 +371,16 @@ def build_parser():
|
|||||||
action="append_const", const="metadata",
|
action="append_const", const="metadata",
|
||||||
help="Write metadata to separate JSON files",
|
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(
|
postprocessor.add_argument(
|
||||||
"--write-tags",
|
"--write-tags",
|
||||||
dest="postprocessors",
|
dest="postprocessors",
|
||||||
|
|||||||
Reference in New Issue
Block a user