No need to use the ->string format
If we have only one function to call fro completion, just call it. Also, remove local declaration, since we don't use the ->string form.
This commit is contained in:
parent
8daa84f28f
commit
062e23c1bf
12
src/_port
12
src/_port
|
@ -16,10 +16,6 @@
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_port() {
|
_port() {
|
||||||
# Variables for _argument
|
|
||||||
typeset -A opt_args
|
|
||||||
local context state state_descr line
|
|
||||||
|
|
||||||
local -a upgrade_options revupgrade_options select_options \
|
local -a upgrade_options revupgrade_options select_options \
|
||||||
actions pseudo_common pseudo_advanced port_prefix
|
actions pseudo_common pseudo_advanced port_prefix
|
||||||
|
|
||||||
|
@ -135,14 +131,8 @@ _port() {
|
||||||
'-y[Perform a dry run.]' \
|
'-y[Perform a dry run.]' \
|
||||||
'-t[Enable trace mode debug facilities on platforms that support it (Mac OS X).]' \
|
'-t[Enable trace mode debug facilities on platforms that support it (Mac OS X).]' \
|
||||||
"1:Port actions:(($actions))" \
|
"1:Port actions:(($actions))" \
|
||||||
'*:extra:->extra' \
|
'*:Per-action arguments:_port_dispatch' \
|
||||||
&& return 0
|
&& return 0
|
||||||
|
|
||||||
case "$state" in
|
|
||||||
extra)
|
|
||||||
_port_dispatch
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_port_dispatch() {
|
_port_dispatch() {
|
||||||
|
|
Loading…
Reference in New Issue