Skip to content

Commit

Permalink
Remove --auth in ejabberd_ctl.erl as it's useless, still useful for m…
Browse files Browse the repository at this point in the history
…od_rest
  • Loading branch information
badlop committed Apr 15, 2016
1 parent 222572b commit e5e4f39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/ejabberd_ctl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,7 @@ print_usage(HelpMode, MaxC, ShCode, Version) ->
get_list_ctls(),
print(
["Usage: ", ?B("ejabberdctl"), " [--no-timeout] [--node ", ?U("nodename"), "] [--version ", ?U("api_version"), "] [--auth ",
?U("user"), " ", ?U("host"), " ", ?U("password"), "] ",
["Usage: ", ?B("ejabberdctl"), " [--no-timeout] [--node ", ?U("nodename"), "] [--version ", ?U("api_version"), "] ",
?U("command"), " [", ?U("options"), "]\n"
"\n"
"Available commands in this ejabberd node:\n"], []),
Expand Down
4 changes: 2 additions & 2 deletions tools/ejabberdctl.bc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ _ejabberdctl()
ejabberdctl)
# This clause matches even when calling `/sbin/ejabberdctl` thanks to the ##*/ in the case
get_help
COMPREPLY=($(compgen -W "--node --auth ${startpars} ${startcoms} ${runningcommands}" -- $cur))
COMPREPLY=($(compgen -W "--node ${startpars} ${startcoms} ${runningcommands}" -- $cur))
return 0
;;
start|live)
Expand Down Expand Up @@ -75,7 +75,7 @@ _ejabberdctl()
prev2="${COMP_WORDS[COMP_CWORD-2]}"
get_help
if [[ "$prev2" == --* ]]; then
COMPREPLY=($(compgen -W "--node --auth ${startpars} ${startcoms} ${runningcommands}" -- $cur))
COMPREPLY=($(compgen -W "--node ${startpars} ${startcoms} ${runningcommands}" -- $cur))
else
if [[ $ISRUNNING == 1 ]]; then
echo ""
Expand Down

0 comments on commit e5e4f39

Please sign in to comment.