Skip to content

Commit

Permalink
add foreground option
Browse files Browse the repository at this point in the history
  • Loading branch information
richlv committed Jan 26, 2016
1 parent 1637526 commit 3b15f8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions zabbix_agentd-completion
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _zabbix_agentd()
COMPREPLY=()
_get_comp_words_by_ref -n = cur prev
unique_opts="-h|--help|-V|--version"
nonunique_opts="-c|-p|-R|-t|--config|--print|--runtime-control|--test"
nonunique_opts="-c|-p|-R|-t|-f|--config|--print|--runtime-control|--test|--foreground"
unique_opts_space=${unique_opts//|/ }
nonunique_opts_space=${nonunique_opts//|/ }
runtime_options="log_level_increase log_level_decrease"
Expand All @@ -20,7 +20,7 @@ _zabbix_agentd()
for (( i=1; i<=${#COMP_WORDS[@]-1}; ++i )) ; do
opt=${COMP_WORDS[$i]}

[[ $opt =~ --*[pthvVcRr].* ]] && {
[[ $opt =~ --*[pthvVcRrf].* ]] && {
option=$opt
} || {
continue
Expand Down
4 changes: 2 additions & 2 deletions zabbix_proxy-completion
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _zabbix_proxy()
COMPREPLY=()
_get_comp_words_by_ref -n = cur prev
unique_opts="-h|--help|-V|--version"
nonunique_opts="-c|-R|--config|--runtime-control"
nonunique_opts="-c|-R|-f|--config|--runtime-control|--foreground"
unique_opts_space=${unique_opts//|/ }
nonunique_opts_space=${nonunique_opts//|/ }
runtime_simple_options="config_cache_reload housekeeper_execute"
Expand All @@ -22,7 +22,7 @@ _zabbix_proxy()
for (( i=1; i<=${#COMP_WORDS[@]-1}; ++i )) ; do
opt=${COMP_WORDS[$i]}

[[ $opt =~ --*[hvVcRr].* ]] && {
[[ $opt =~ --*[hvVcRrf].* ]] && {
option=$opt
} || {
continue
Expand Down
4 changes: 2 additions & 2 deletions zabbix_server-completion
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _zabbix_server()
_get_comp_words_by_ref -n = cur prev

unique_opts="-h|--help|-V|--version"
nonunique_opts="-c|-R|--config|--runtime-control"
nonunique_opts="-c|-R|-f|--config|--runtime-control|--foreground"
unique_opts_space=${unique_opts//|/ }
nonunique_opts_space=${nonunique_opts//|/ }
runtime_simple_options="config_cache_reload housekeeper_execute"
Expand All @@ -28,7 +28,7 @@ _zabbix_server()
unset config_supplied
continue
}
[[ $opt =~ --*[hvVcRr].* ]] && {
[[ $opt =~ --*[hvVcRrf].* ]] && {
option=$opt
} || {
continue
Expand Down

0 comments on commit 3b15f8a

Please sign in to comment.