summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Morrow <jared@basho.com>2014-01-14 12:49:42 -0800
committerJared Morrow <jared@basho.com>2014-01-14 12:49:42 -0800
commitcf3a24e5c7c48b05e3b51bcc6ff2128b3fd71c07 (patch)
tree8005d62ee4b60f9aa96d559fbea13eded0513a0c /src
parentd75af5266df6e4295f4dc7fd9a1dd16456ef8638 (diff)
parent4af177bd06874ff16d9e0ce5d59a201d27955ee6 (diff)
Merge pull request #196 from tuncer/rebar-run-info
Print a more appropriate message on 'rebar info'
Diffstat (limited to 'src')
-rw-r--r--src/rebar.erl4
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