mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Remove --auth in ejabberd_ctl.erl as it's useless, still useful for mod_rest
This commit is contained in:
parent
222572bd56
commit
e5e4f39c01
@ -504,8 +504,7 @@ print_usage(HelpMode, MaxC, ShCode, Version) ->
|
|||||||
get_list_ctls(),
|
get_list_ctls(),
|
||||||
|
|
||||||
print(
|
print(
|
||||||
["Usage: ", ?B("ejabberdctl"), " [--no-timeout] [--node ", ?U("nodename"), "] [--version ", ?U("api_version"), "] [--auth ",
|
["Usage: ", ?B("ejabberdctl"), " [--no-timeout] [--node ", ?U("nodename"), "] [--version ", ?U("api_version"), "] ",
|
||||||
?U("user"), " ", ?U("host"), " ", ?U("password"), "] ",
|
|
||||||
?U("command"), " [", ?U("options"), "]\n"
|
?U("command"), " [", ?U("options"), "]\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Available commands in this ejabberd node:\n"], []),
|
"Available commands in this ejabberd node:\n"], []),
|
||||||
|
@ -42,7 +42,7 @@ _ejabberdctl()
|
|||||||
ejabberdctl)
|
ejabberdctl)
|
||||||
# This clause matches even when calling `/sbin/ejabberdctl` thanks to the ##*/ in the case
|
# This clause matches even when calling `/sbin/ejabberdctl` thanks to the ##*/ in the case
|
||||||
get_help
|
get_help
|
||||||
COMPREPLY=($(compgen -W "--node --auth ${startpars} ${startcoms} ${runningcommands}" -- $cur))
|
COMPREPLY=($(compgen -W "--node ${startpars} ${startcoms} ${runningcommands}" -- $cur))
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
start|live)
|
start|live)
|
||||||
@ -75,7 +75,7 @@ _ejabberdctl()
|
|||||||
prev2="${COMP_WORDS[COMP_CWORD-2]}"
|
prev2="${COMP_WORDS[COMP_CWORD-2]}"
|
||||||
get_help
|
get_help
|
||||||
if [[ "$prev2" == --* ]]; then
|
if [[ "$prev2" == --* ]]; then
|
||||||
COMPREPLY=($(compgen -W "--node --auth ${startpars} ${startcoms} ${runningcommands}" -- $cur))
|
COMPREPLY=($(compgen -W "--node ${startpars} ${startcoms} ${runningcommands}" -- $cur))
|
||||||
else
|
else
|
||||||
if [[ $ISRUNNING == 1 ]]; then
|
if [[ $ISRUNNING == 1 ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user