about summary refs log tree commit diff
path: root/Completion/Unix/Command/_unexpand
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-10-07 22:26:51 +0200
committerOliver Kiddle <opk@zsh.org>2017-10-07 22:26:51 +0200
commit69fcc22dc84e8411870ba8f2a4c876e223ad2a08 (patch)
tree1ccdeb6677938ae9f23ec0a55ed59f5045a26a56 /Completion/Unix/Command/_unexpand
parente49aabc13a858c636146f6744ac25b3e741763ff (diff)
downloadzsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.tar.gz
zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.tar.xz
zsh-69fcc22dc84e8411870ba8f2a4c876e223ad2a08.zip
41823: new completions for some GNU coreutils utilities
Diffstat (limited to 'Completion/Unix/Command/_unexpand')
-rw-r--r--Completion/Unix/Command/_unexpand24
1 files changed, 12 insertions, 12 deletions
diff --git a/Completion/Unix/Command/_unexpand b/Completion/Unix/Command/_unexpand
index c983c628f..d9793ea70 100644
--- a/Completion/Unix/Command/_unexpand
+++ b/Completion/Unix/Command/_unexpand
@@ -1,4 +1,4 @@
-#compdef unexpand
+#compdef unexpand gunexpand
 
 local all tabs ret=1
 local -a args
@@ -6,21 +6,21 @@ local -a args
 all="convert all whitespace, instead of just initial whitespace"
 tabs="use comma separated list of tab positions"
 args=( 
-    "(--all)-a[$all]"
-    "(--tabs)-t[$tabs]:tablist"
-    "*:file:_files"
+  "(--all)-a[$all]"
+  "(--tabs)-t+[$tabs]:tablist"
+  '*:file:_files'
 )
 
 if _pick_variant gnu="Free Soft" unix --version; then
-    args+=(
-        "(-a)--all[$all]"
-        "--first-only[convert only leading sequences of whitespace]"
-        "(-t)--tabs=[$tabs]:tablist"
-        "(* -)--help[display help message and exit]"
-        "(* -)--version[output version information and exit]"
-    )
+  args+=(
+    "(-a)--all[$all]"
+    '--first-only[convert only leading sequences of whitespace]'
+    "(-t)--tabs=[$tabs]:tablist"
+    '(* -)--help[display usage information]'
+    '(* -)--version[output version information]'
+  )
 fi
 
-_arguments "$args[@]" && ret=0
+_arguments -s -S "$args[@]" && ret=0
 
 return ret