summaryrefslogtreecommitdiff
path: root/src/rabbit_control_main.erl
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-08-13 10:39:39 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-08-13 10:39:39 +0100
commitfb43be6543d3b4c60a5a6b338d1d70661fa4afaf (patch)
treeb6f032bb42691fd643dc09c0e6549e2dd973dae5 /src/rabbit_control_main.erl
parent02c0c3902142fa0c5d8c2f42d2fe1563d4a03719 (diff)
downloadrabbitmq-server-fb43be6543d3b4c60a5a6b338d1d70661fa4afaf.tar.gz
Fix inadvertent match of Args. That's what you get for only running the test suite.bug25572
Diffstat (limited to 'src/rabbit_control_main.erl')
-rw-r--r--src/rabbit_control_main.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index 38a07b6a..07fdabb9 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -229,8 +229,9 @@ usage() ->
io:format("~s", [rabbit_ctl_usage:usage()]),
rabbit_misc:quit(1).
-parse_arguments(Args, NodeStr) ->
- case rabbit_misc:parse_arguments(?COMMANDS, ?GLOBAL_DEFS(NodeStr), Args) of
+parse_arguments(CmdLine, NodeStr) ->
+ case rabbit_misc:parse_arguments(
+ ?COMMANDS, ?GLOBAL_DEFS(NodeStr), CmdLine) of
{ok, {Cmd, Opts0, Args}} ->
Opts = [case K of
?NODE_OPT -> {?NODE_OPT, rabbit_nodes:make(V)};