From bd8824c999571179c963fe7a87a49d01c37c9018 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 13 Nov 2022 08:37:24 +0100 Subject: Add support for long options --- completions/_center | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'completions/_center') 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 -- cgit v1.2.3