summaryrefslogtreecommitdiff
path: root/Completion/X/Command/_pdftk
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2022-04-11 00:17:48 +0200
committerAxel Beckert <abe@deuxchevaux.org>2022-04-11 00:17:48 +0200
commitb09f4483416c54c1782824633dfabaf2ec0265b6 (patch)
tree304bc82642862525ae680c7fbaa249663b10ad57 /Completion/X/Command/_pdftk
parent12eb3e5356f2fc3351eed58ef1cef1b8fb83b504 (diff)
parent6e55c920503071e917619b8cb1a188cd35d772db (diff)
downloadzsh-b09f4483416c54c1782824633dfabaf2ec0265b6.tar.gz
zsh-b09f4483416c54c1782824633dfabaf2ec0265b6.zip
New upstream version 5.8.1.2-test
Diffstat (limited to 'Completion/X/Command/_pdftk')
-rw-r--r--Completion/X/Command/_pdftk14
1 files changed, 6 insertions, 8 deletions
diff --git a/Completion/X/Command/_pdftk b/Completion/X/Command/_pdftk
index b8c43f754..b26deb15f 100644
--- a/Completion/X/Command/_pdftk
+++ b/Completion/X/Command/_pdftk
@@ -24,7 +24,7 @@ case $words[CURRENT-1] in
(allow)
#_description permissions expl "permission"
#compadd $expl \
- _values -s , permissions \
+ _values -s , permission \
Printing DegradedPrinting ModifyContents Assembly CopyContents \
ScreenReaders ModifyAnnotations FillIn AllFeatures
;;
@@ -34,13 +34,11 @@ case $words[CURRENT-1] in
;;
(fill_form)
- _description files expl 'FDF and XFDF files'
- _files "$@" $expl -g '(#i)*.(fdf|xfdf)'
+ _wanted files expl 'FDF or XFDF file' _files -g '(#i)*.(fdf|xfdf)(-.)'
;;
((multibackground|background|stamp|multistamp|output))
- _description files expl 'PDF files'
- _files "$@" $expl -g '(#i)*.pdf'
+ _pdf
;;
(update_info)
@@ -53,11 +51,11 @@ case $words[CURRENT-1] in
esac && return 0
if [[ -n $words[(r)(${(j:|:)operations})] ]]; then
- _description options expl "options"
+ _description options expl "option"
compadd $@ $expl $opts
else
_tags files operations
_alternative \
- 'files:PDF files:_pdfwithhandle' \
- "operations:operations:($operations)"
+ 'files:PDF file:_pdfwithhandle' \
+ "operations:operation:($operations)"
fi