summaryrefslogtreecommitdiffstats
path: root/data/completion
diff options
context:
space:
mode:
Diffstat (limited to 'data/completion')
-rw-r--r--data/completion/_gallery-dl4
-rw-r--r--data/completion/gallery-dl.fish4
2 files changed, 4 insertions, 4 deletions
diff --git a/data/completion/_gallery-dl b/data/completion/_gallery-dl
index 94d2f06..c1425bb 100644
--- a/data/completion/_gallery-dl
+++ b/data/completion/_gallery-dl
@@ -73,8 +73,8 @@ _arguments -C -S \
--write-infojson'[==SUPPRESS==]' \
--write-tags'[Write image tags to separate text files]' \
--mtime-from-date'[Set file modification times according to "date" metadata]' \
---exec'[Execute CMD for each downloaded file. Example: --exec "convert {} {}.png && rm {}"]':'<cmd>' \
---exec-after'[Execute CMD after all files were downloaded successfully. Example: --exec-after "cd {} && convert * ../doc.pdf"]':'<cmd>' \
+--exec'[Execute CMD for each downloaded file. Supported replacement fields are {} or {_path}, {_directory}, {_filename}. Example: --exec "convert {} {}.png && rm {}"]':'<cmd>' \
+--exec-after'[Execute CMD after all files were downloaded successfully. Example: --exec-after "cd {_directory} && convert * ../doc.pdf"]':'<cmd>' \
{-P,--postprocessor}'[Activate the specified post processor]':'<name>' \
{-O,--postprocessor-option}'[Additional "<key>=<value>" post processor options]':'<opt>' && rc=0
diff --git a/data/completion/gallery-dl.fish b/data/completion/gallery-dl.fish
index 00e7b24..593ab89 100644
--- a/data/completion/gallery-dl.fish
+++ b/data/completion/gallery-dl.fish
@@ -67,7 +67,7 @@ complete -c gallery-dl -l 'write-info-json' -d 'Write gallery metadata to a info
complete -c gallery-dl -l 'write-infojson' -d '==SUPPRESS=='
complete -c gallery-dl -l 'write-tags' -d 'Write image tags to separate text files'
complete -c gallery-dl -l 'mtime-from-date' -d 'Set file modification times according to "date" metadata'
-complete -c gallery-dl -x -l 'exec' -d 'Execute CMD for each downloaded file. Example: --exec "convert {} {}.png && rm {}"'
-complete -c gallery-dl -x -l 'exec-after' -d 'Execute CMD after all files were downloaded successfully. Example: --exec-after "cd {} && convert * ../doc.pdf"'
+complete -c gallery-dl -x -l 'exec' -d 'Execute CMD for each downloaded file. Supported replacement fields are {} or {_path}, {_directory}, {_filename}. Example: --exec "convert {} {}.png && rm {}"'
+complete -c gallery-dl -x -l 'exec-after' -d 'Execute CMD after all files were downloaded successfully. Example: --exec-after "cd {_directory} && convert * ../doc.pdf"'
complete -c gallery-dl -x -s 'P' -l 'postprocessor' -d 'Activate the specified post processor'
complete -c gallery-dl -x -s 'O' -l 'postprocessor-option' -d 'Additional "<key>=<value>" post processor options'