diff options
author | Jared Morrow <jared@basho.com> | 2014-01-14 12:49:42 -0800 |
---|---|---|
committer | Jared Morrow <jared@basho.com> | 2014-01-14 12:49:42 -0800 |
commit | cf3a24e5c7c48b05e3b51bcc6ff2128b3fd71c07 (patch) | |
tree | 8005d62ee4b60f9aa96d559fbea13eded0513a0c /src | |
parent | d75af5266df6e4295f4dc7fd9a1dd16456ef8638 (diff) | |
parent | 4af177bd06874ff16d9e0ce5d59a201d27955ee6 (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.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 |