From bf347caa55588b1f38cfaed267111d4c0163d522 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Thu, 19 Nov 2015 23:43:50 +0000 Subject: Handle force flags in leading position The checking of flags and the parsing of arguments is separated up. --- src/rebar_prv_new.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/rebar_prv_new.erl') diff --git a/src/rebar_prv_new.erl b/src/rebar_prv_new.erl index 6574aca..28572a9 100644 --- a/src/rebar_prv_new.erl +++ b/src/rebar_prv_new.erl @@ -32,7 +32,7 @@ init(State) -> -spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}. do(State) -> - case rebar_state:command_args(State) of + case strip_flags(rebar_state:command_args(State)) of ["help"] -> ?CONSOLE("Call `rebar3 new help