mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
refactored to include single dash options
This commit is contained in:
parent
f1e1ba0a56
commit
1ce1fa3d18
@ -12,15 +12,9 @@
|
||||
# * Seth Barberee <seth.barberee@gmail.com>
|
||||
#
|
||||
# -------------------------------------------
|
||||
|
||||
_swaymsg() {
|
||||
local -a options
|
||||
options=('--version:shows version'
|
||||
'--help:shows help message'
|
||||
'--quiet:sends the IPC message but does not print the response from sway'
|
||||
'--socket:Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK'
|
||||
'--type:Specify the type of IPC message. Tab completion still coming so use the man page instead'
|
||||
)
|
||||
_describe 'values' options
|
||||
}
|
||||
_swaymsg "$@"
|
||||
_arguments -s \
|
||||
'(-v --version)'{-v,--version}'[Print the version (of swaymsg) and quit]' \
|
||||
'(-h --help)'{-h,--help}'[Shows help message]' \
|
||||
'(-q --quiet)'{-q,--quiet}'[Sends the IPC message but does not print the response from sway]' \
|
||||
'(-s --socket)'{-s,--socket}'[Use the specified socket path. Otherwise, swaymsg uses $SWAYSOCK then $I3SOCK]' \
|
||||
'(-t --type)'{-t,--type}'[Specify the type of IPC message. Tab completion still coming so use the man page instead]'
|
||||
|
Loading…
Reference in New Issue
Block a user