#7 JOnAS: remove unneded wrapper function
This commit is contained in:
parent
b6a6f585d2
commit
e75f46c85c
18
_jonas
18
_jonas
|
@ -43,17 +43,14 @@
|
|||
|
||||
|
||||
typeset -A opt_args
|
||||
local context state line curcontext="$curcontext"
|
||||
local context state line curcontext="$curcontext" ret=1
|
||||
|
||||
_jonas() {
|
||||
local ret=1
|
||||
|
||||
_arguments -C \
|
||||
_arguments -C \
|
||||
'1:cmd:->cmds' \
|
||||
'*::arg:->args' \
|
||||
&& ret=0
|
||||
&& ret=0
|
||||
|
||||
case "$state" in
|
||||
case "$state" in
|
||||
(cmds)
|
||||
local commands; commands=(
|
||||
'version:show version information'
|
||||
|
@ -118,9 +115,6 @@ _jonas() {
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
_jonas "$@"
|
||||
return ret
|
||||
|
|
Loading…
Reference in New Issue