diff options
author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-05-21 15:47:48 +0100 |
---|---|---|
committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-05-21 15:47:48 +0100 |
commit | 782377b71794e29bc2e96759f39bd3de8abad364 (patch) | |
tree | cfba46a30ebb534ae18fbe097a60e43af777aafd /src/rabbit_plugins.erl | |
parent | 1ba52647dc3d727206c8d1871f87b777e7664a36 (diff) | |
download | rabbitmq-server-782377b71794e29bc2e96759f39bd3de8abad364.tar.gz |
get_options => parse_arguments
Diffstat (limited to 'src/rabbit_plugins.erl')
-rw-r--r-- | src/rabbit_plugins.erl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl index c05cee72..13c68429 100644 --- a/src/rabbit_plugins.erl +++ b/src/rabbit_plugins.erl @@ -53,13 +53,13 @@ start() -> init:get_argument(enabled_plugins_file), {ok, [[PluginsDir|_]|_]} = init:get_argument(plugins_dist_dir), {Command, Opts, Args} = - case rabbit_misc:get_options(?COMMANDS, - ?GLOBAL_OPTS, - [{?VERBOSE_OPT, flag}, - {?MINIMAL_OPT, flag}, - {?ENABLED_OPT, flag}, - {?ENABLED_ALL_OPT, flag}], - init:get_plain_arguments()) + case rabbit_misc:parse_arguments(?COMMANDS, + ?GLOBAL_OPTS, + [{?VERBOSE_OPT, flag}, + {?MINIMAL_OPT, flag}, + {?ENABLED_OPT, flag}, + {?ENABLED_ALL_OPT, flag}], + init:get_plain_arguments()) of {ok, Res} -> Res; no_command -> print_error("could not recognise command", []), |