|
|
@ -12,17 +12,11 @@
|
|
|
|
# * Seth Barberee <seth.barberee@gmail.com>
|
|
|
|
# * Seth Barberee <seth.barberee@gmail.com>
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# -------------------------------
|
|
|
|
# -------------------------------
|
|
|
|
|
|
|
|
_arguments -s \
|
|
|
|
_sway() {
|
|
|
|
'(-v --version)'{-v,--version}'[shows version]' \
|
|
|
|
local -a options
|
|
|
|
'(-h --help)'{-h,--help}'[shows help message]' \
|
|
|
|
options=('--version:shows version'
|
|
|
|
'(-c --config)'{-c,--config}'[Specify a config file different than $HOME/.config/sway/config]:files:_files' \
|
|
|
|
'--help:shows help message'
|
|
|
|
'(-C --validate)'{-C,--validate}'[Check validity of the config file, then exit]' \
|
|
|
|
'--config:Specify a config file different than $HOME/.config/sway/config'
|
|
|
|
'(-d --debug)'{-d,--debug}'[Enables full logging, including debug information]' \
|
|
|
|
'--validate:Check validity of the config file, then exit'
|
|
|
|
'(-v --verbose)'{-v,--verbose}'[Enables more verbose logging]' \
|
|
|
|
'--debug:Enables full logging, including debug information'
|
|
|
|
'(--get-socketpath)'--get-socketpath'[Gets the IPC socket path and prints it, then exits]'
|
|
|
|
'--verbose:Enables more verbose logging'
|
|
|
|
|
|
|
|
'--get-socketpath:Gets the IPC socket path and prints it, then exits'
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
_describe 'values' options
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
_sway "$@"
|
|
|
|
|
|
|
|