Helpful message when no commands available
This commit is contained in:
parent
83b1f3e6c8
commit
59f95f8421
|
@ -127,7 +127,7 @@ get_commands() ->
|
||||||
help() ->
|
help() ->
|
||||||
case ets:tab2list(?CMD_TAB) of
|
case ets:tab2list(?CMD_TAB) of
|
||||||
[] ->
|
[] ->
|
||||||
print("No commands available, make sure you have plugin emqx_management started.~n");
|
print("No commands available.~n");
|
||||||
Cmds ->
|
Cmds ->
|
||||||
print("Usage: ~s~n", [?MODULE]),
|
print("Usage: ~s~n", [?MODULE]),
|
||||||
lists:foreach(fun({_, {Mod, Cmd}, _}) ->
|
lists:foreach(fun({_, {Mod, Cmd}, _}) ->
|
||||||
|
|
Loading…
Reference in New Issue