diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_core.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 1c1bf66..6abab68 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -93,7 +93,11 @@ process_command(State, Command) -> State2 = rebar_state:command_parsed_args(State1, Args), do(TargetProviders, State2); {error, {invalid_option, Option}} -> - {error, io_lib:format("Invalid option ~s on task ~p", [Option, Command])} + {error, io_lib:format("Invalid option ~s on task ~p", [Option, Command])}; + {error, {invalid_option_arg, {Option, Arg}}} -> + {error, io_lib:format("Invalid argument ~s to option ~s", [Arg, Option])}; + {error, {missing_option_arg, Option}} -> + {error, io_lib:format("Missing argument to option ~s", [Option])} end end end. |