diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-05-23 12:59:21 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-05-23 12:59:21 +0100 |
| commit | 8f4377466980f35adb8f0e67015f0867f9f48491 (patch) | |
| tree | 366dad9e37f9429f754ec5d0dc2e85794847f5d8 | |
| parent | b8784f4d1484dbd5a907f14c0e20306203c09bd5 (diff) | |
| download | rabbitmq-server-git-8f4377466980f35adb8f0e67015f0867f9f48491.tar.gz | |
Comment
| -rw-r--r-- | src/rabbit_misc.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index 1d7d39e77b..93c784ece9 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, _, _) -> |
