aboutsummaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-11-13 08:37:24 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-11-13 09:17:41 +0100
commitbd8824c999571179c963fe7a87a49d01c37c9018 (patch)
tree025ad5a344cd5747a5d2263104309a29c1cc69a0 /completions
parente9ce2691c913004051c418f7457072df49ca2680 (diff)
Add support for long options
Diffstat (limited to 'completions')
-rw-r--r--completions/_center14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/_center b/completions/_center
index 504028e..16238d9 100644
--- a/completions/_center
+++ b/completions/_center
@@ -1,11 +1,11 @@
#compdef center
-_arguments -sS \
- '-e[do not consider ANSI color escape sequences]' \
- '-l[center files, not files]' \
- '-r[display tabs using spaces]' \
- '-t+[specify width of tab characters]:tab width (in columns)' \
- '-w+[specify output width]:output width (in columns)' \
- '*: :_files'
+_arguments -s -S \
+ '(-e --ignore-ansi)'{-e,--ignore-ansi}'[do not consider ANSI color escape sequences]' \
+ '(-l --longest)'{-l,--longest}'[center files, not files]' \
+ '(-r --spaces)'{-r,--spaces}'[display tabs using spaces]' \
+ '(-t --tabsize)'{-t+,--tabsize=}'[specify width of tab characters]:integer' \
+ '(-w --width)'{-w+,--width=}'[specify output width]:integer' \
+ '*:file:_files'
# vi: ft=zsh