瀏覽代碼

Print a more appropriate message on 'rebar info'

To avoid treating plugins' info/2 functions as commands, we catch calls
to 'rebar info'. Previously (4b8c81fb) we simply printed the help
string, but it's much more informative to print the following:
Command 'info' not understood or not applicable
pull/3/head
Tuncer Ayaz 11 年之前
父節點
當前提交
4af177bd06
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/rebar.erl

+ 3
- 1
src/rebar.erl 查看文件

@ -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

Loading…
取消
儲存