summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-05-23 12:59:21 +0100
committerSimon MacMullen <simon@rabbitmq.com>2012-05-23 12:59:21 +0100
commit4d89531345d95406e8127bef87e2f578307102a4 (patch)
tree366dad9e37f9429f754ec5d0dc2e85794847f5d8
parent121d97a43ccdf61eebf975f5e6f6d20c56167f2e (diff)
downloadrabbitmq-server-bug24919.tar.gz
Commentbug24919
-rw-r--r--src/rabbit_misc.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 1d7d39e7..93c784ec 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -770,6 +770,9 @@ process_opts(C, Defs, As0) ->
%% Consume flags/options until you find the correct command. If there are no
%% arguments or the first argument is not the command we're expecting, fail.
+%% Arguments to this are: definitions, cmd we're looking for, args we
+%% haven't parsed, whether we have found the cmd, options we've found,
+%% plain args we've found.
process_opts(_Defs, C, [], found, KVs, Outs) ->
{ok, {list_to_atom(C), dict:to_list(KVs), lists:reverse(Outs)}};
process_opts(_Defs, _C, [], not_found, _, _) ->