remove last expl[@] strings and replace them with the generic "$@"
This commit is contained in:
parent
6eda4d8276
commit
28679cf7c3
|
@ -278,14 +278,14 @@ _nft_subcommands(){
|
||||||
'monitor:listen to Netlink events'
|
'monitor:listen to Netlink events'
|
||||||
'describe:show information about the type of an expression and its data type'
|
'describe:show information about the type of an expression and its data type'
|
||||||
)
|
)
|
||||||
_describe -t commands 'nft subcommand' commands "${expl[@]}"
|
_describe -t commands 'nft subcommand' commands "$@"
|
||||||
}
|
}
|
||||||
_nft_mon_filter(){
|
_nft_mon_filter(){
|
||||||
local monitor_filters=(
|
local monitor_filters=(
|
||||||
'new:show only events of created objects'
|
'new:show only events of created objects'
|
||||||
'destroy:show only events of deleted objects'
|
'destroy:show only events of deleted objects'
|
||||||
)
|
)
|
||||||
_describe -t monitor_filters 'nft monitor' monitor_filters -J monitor_filters "${expl[@]}"
|
_describe -t monitor_filters 'nft monitor' monitor_filters -J monitor_filters "$@"
|
||||||
_nft_mon_keywords
|
_nft_mon_keywords
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ _nft_mon_keywords(){
|
||||||
'elements:show only events of element objects'
|
'elements:show only events of element objects'
|
||||||
'ruleset:show ruleset events, such as table, chain, rule, set, counters and quotas'
|
'ruleset:show ruleset events, such as table, chain, rule, set, counters and quotas'
|
||||||
)
|
)
|
||||||
_describe -t monitor_keywords 'nft monitor' monitor_keywords -J monitor_keywords "${expl[@]}"
|
_describe -t monitor_keywords 'nft monitor' monitor_keywords -J monitor_keywords "$@"
|
||||||
_nft_out_format
|
_nft_out_format
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +307,7 @@ _nft_out_format(){
|
||||||
'json:format output to JSON'
|
'json:format output to JSON'
|
||||||
'xml:format output to XML'
|
'xml:format output to XML'
|
||||||
)
|
)
|
||||||
_describe -t monitor_format "output format" monitor_format -J monitor_format "${expl[@]}"
|
_describe -t monitor_format "output format" monitor_format -J monitor_format "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
_nft_add(){
|
_nft_add(){
|
||||||
|
|
Loading…
Reference in New Issue