aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/option.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-10-22 01:00:20 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-10-22 01:00:20 -0400
commiteec4f7f008e8ea79fb188d1a83899ffc111c01f6 (patch)
tree296978db828683b62f28966b33c71ab65de6ef32 /gallery_dl/option.py
parent2a69d9df4852d040011999e269be4390b253ed92 (diff)
parente052f3b9e1d9703a5a466daeaf37bacf476c2daf (diff)
Update upstream source from tag 'upstream/1.26.1'
Update to upstream version '1.26.1' with Debian dir 0ae933d6689388e4d54c2e1b49ae788c18b91545
Diffstat (limited to 'gallery_dl/option.py')
-rw-r--r--gallery_dl/option.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gallery_dl/option.py b/gallery_dl/option.py
index 08e6e70..1982b71 100644
--- a/gallery_dl/option.py
+++ b/gallery_dl/option.py
@@ -510,6 +510,8 @@ def build_parser():
dest="postprocessors", metavar="CMD",
action=AppendCommandAction, const={"name": "exec"},
help=("Execute CMD for each downloaded file. "
+ "Supported replacement fields are "
+ "{} or {_path}, {_directory}, {_filename}. "
"Example: --exec \"convert {} {}.png && rm {}\""),
)
postprocessor.add_argument(
@@ -518,7 +520,8 @@ def build_parser():
action=AppendCommandAction, const={
"name": "exec", "event": "finalize"},
help=("Execute CMD after all files were downloaded successfully. "
- "Example: --exec-after \"cd {} && convert * ../doc.pdf\""),
+ "Example: --exec-after \"cd {_directory} "
+ "&& convert * ../doc.pdf\""),
)
postprocessor.add_argument(
"-P", "--postprocessor",