From aa06ee4fbda71127c2f1f4dd08fcbd666b4a5c41 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sun, 31 Jan 2016 22:39:08 -0600 Subject: refactored to include single dash --- completions/zsh/_sway | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'completions/zsh/_sway') diff --git a/completions/zsh/_sway b/completions/zsh/_sway index a9b1a14f..f3695c48 100644 --- a/completions/zsh/_sway +++ b/completions/zsh/_sway @@ -12,17 +12,11 @@ # * Seth Barberee # # ------------------------------- - -_sway() { - local -a options - options=('--version:shows version' - '--help:shows help message' - '--config:Specify a config file different than $HOME/.config/sway/config' - '--validate:Check validity of the config file, then exit' - '--debug:Enables full logging, including debug information' - '--verbose:Enables more verbose logging' - '--get-socketpath:Gets the IPC socket path and prints it, then exits' - ) - _describe 'values' options - } -_sway "$@" +_arguments -s \ + '(-v --version)'{-v,--version}'[shows version]' \ + '(-h --help)'{-h,--help}'[shows help message]' \ + '(-c --config)'{-c,--config}'[Specify a config file different than $HOME/.config/sway/config]:files:_files' \ + '(-C --validate)'{-C,--validate}'[Check validity of the config file, then exit]' \ + '(-d --debug)'{-d,--debug}'[Enables full logging, including debug information]' \ + '(-v --verbose)'{-v,--verbose}'[Enables more verbose logging]' \ + '(--get-socketpath)'--get-socketpath'[Gets the IPC socket path and prints it, then exits]' -- cgit v1.2.3