Merge pull request #196 from tuncer/rebar-run-info

Print a more appropriate message on 'rebar info'
This commit is contained in:
Jared Morrow 2014-01-14 12:49:42 -08:00
commit cf3a24e5c7

View file

@ -87,7 +87,9 @@ run(["help"|RawCmds]) when RawCmds =/= [] ->
run(["help"]) -> run(["help"]) ->
help(); help();
run(["info"|_]) -> run(["info"|_]) ->
help(); %% Catch calls to 'rebar info' to avoid treating plugins' info/2 functions
%% as commands.
?CONSOLE("Command 'info' not understood or not applicable~n", []);
run(["version"]) -> run(["version"]) ->
ok = load_rebar_app(), ok = load_rebar_app(),
%% Display vsn and build time info %% Display vsn and build time info