From b763a9e14a0d96ad7663ea35c7d6be8b05c84006 Mon Sep 17 00:00:00 2001 From: Vlad Dumitrescu Date: Mon, 6 Mar 2017 17:44:28 +0100 Subject: minor fix: name of internal function --- src/rebar_prv_path.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rebar_prv_path.erl b/src/rebar_prv_path.erl index 4259eec..05fb046 100644 --- a/src/rebar_prv_path.erl +++ b/src/rebar_prv_path.erl @@ -27,7 +27,7 @@ init(State) -> {example, "rebar3 path"}, {short_desc, "Print paths to build dirs in current profile."}, {desc, "Print paths to build dirs in current profile."}, - {opts, eunit_opts(State)}])), + {opts, path_opts(State)}])), {ok, State1}. @@ -107,8 +107,8 @@ normalize(AppName) when is_list(AppName) -> AppName; normalize(AppName) when is_atom(AppName) -> atom_to_list(AppName); normalize(AppName) when is_binary(AppName) -> binary_to_list(AppName). -eunit_opts(_State) -> - [{app, undefined, "app", string, help(app)}, +path_opts(_State) -> + [{app, undefined, "apps", string, help(app)}, {base, undefined, "base", boolean, help(base)}, {bin, undefined, "bin", boolean, help(bin)}, {ebin, undefined, "ebin", boolean, help(ebin)}, -- cgit v1.1 From d4beb8edf15f6e0122498ed6394fe933a0b9c4c7 Mon Sep 17 00:00:00 2001 From: Vlad Dumitrescu Date: Mon, 6 Mar 2017 18:13:35 +0100 Subject: fix "apps" name --- src/rebar_prv_path.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_prv_path.erl b/src/rebar_prv_path.erl index 05fb046..d8e14a4 100644 --- a/src/rebar_prv_path.erl +++ b/src/rebar_prv_path.erl @@ -108,7 +108,7 @@ normalize(AppName) when is_atom(AppName) -> atom_to_list(AppName); normalize(AppName) when is_binary(AppName) -> binary_to_list(AppName). path_opts(_State) -> - [{app, undefined, "apps", string, help(app)}, + [{app, undefined, "app", string, help(app)}, {base, undefined, "base", boolean, help(base)}, {bin, undefined, "bin", boolean, help(bin)}, {ebin, undefined, "ebin", boolean, help(ebin)}, -- cgit v1.1