]> granicus.if.org Git - ejabberd/commitdiff
Remove --auth in ejabberd_ctl.erl as it's useless, still useful for mod_rest
authorBadlop <badlop@process-one.net>
Fri, 15 Apr 2016 13:35:57 +0000 (15:35 +0200)
committerBadlop <badlop@process-one.net>
Fri, 15 Apr 2016 13:35:57 +0000 (15:35 +0200)
src/ejabberd_ctl.erl
tools/ejabberdctl.bc

index 7cacc3bbb1c8719c35947fea897a0071a5427c63..bb16e91e8868382cc2de6370df0fda9c1d008122 100644 (file)
@@ -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"], []),
index 72a5356f2784a58d81e67e24baffd4c1791fd8a9..3a63e29fde328b7c07bab6ed19699f3bbb790ead 100644 (file)
@@ -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)
@@ -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 ""