:retab
This commit is contained in:
parent
8537a9a127
commit
1a764d6a14
9 changed files with 332 additions and 329 deletions
|
|
@ -1,22 +1,22 @@
|
|||
#compdef wom
|
||||
|
||||
_arguments \
|
||||
'1:flag:->flags' \
|
||||
'*:: :->args'
|
||||
'1:flag:->flags' \
|
||||
'*:: :->args'
|
||||
|
||||
case "$state" in
|
||||
flags)
|
||||
local -a opts
|
||||
opts=(
|
||||
'-c:Path to config file'
|
||||
'-v:Show version and exit'
|
||||
'-h:Show help text'
|
||||
flags)
|
||||
local -a opts
|
||||
opts=(
|
||||
'-c:Path to config file'
|
||||
'-v:Show version and exit'
|
||||
'-h:Show help text'
|
||||
$(wom subcmds)
|
||||
)
|
||||
_describe 'flags' opts
|
||||
;;
|
||||
)
|
||||
_describe 'flags' opts
|
||||
;;
|
||||
args)
|
||||
case $line[1] in
|
||||
-c) _files ;;
|
||||
esac
|
||||
case $line[1] in
|
||||
-c) _files ;;
|
||||
esac
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue