diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2013-12-11 10:06:22 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2014-01-01 10:58:32 +0100 |
commit | 4af177bd06874ff16d9e0ce5d59a201d27955ee6 (patch) | |
tree | 862761cbd7f68acdaacd490f905db5a55c9e8982 /src | |
parent | df42410cf21a37e0c48e741ffa37db9efc576309 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar.erl b/src/rebar.erl index 00505be..5e48578 100644 --- a/src/rebar.erl +++ b/src/rebar.erl @@ -87,7 +87,9 @@ run(["help"|RawCmds]) when RawCmds =/= [] -> run(["help"]) -> help(); 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"]) -> ok = load_rebar_app(), %% Display vsn and build time info |