diff options
author | Grigory Starinkin <[email protected]> | 2018-11-04 13:48:38 +0000 |
---|---|---|
committer | Grigory Starinkin <[email protected]> | 2018-11-04 14:50:02 +0000 |
commit | fc2170f006485b5f9705a8ff5e90b92d431c7c2c (patch) | |
tree | 777d1a65158daea70b62f9b31570185c6fc287d8 /src/rlx_cmd_args.erl | |
parent | 9f9989167b04c1335c23fafe9945f490abbff799 (diff) | |
download | relx-fc2170f006485b5f9705a8ff5e90b92d431c7c2c.tar.gz relx-fc2170f006485b5f9705a8ff5e90b92d431c7c2c.tar.bz2 relx-fc2170f006485b5f9705a8ff5e90b92d431c7c2c.zip |
allow specify additional providers via api and cli calls
Diffstat (limited to 'src/rlx_cmd_args.erl')
-rw-r--r-- | src/rlx_cmd_args.erl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rlx_cmd_args.erl b/src/rlx_cmd_args.erl index b20344c..4f5e9da 100644 --- a/src/rlx_cmd_args.erl +++ b/src/rlx_cmd_args.erl @@ -285,6 +285,19 @@ create(include_erts, Opts) -> create(warnings_as_errors, Opts) -> WarningsAsErrors = proplists:get_value(warnings_as_errors, Opts, false), {warnings_as_errors, WarningsAsErrors}; +create(provider, Opts) -> + case proplists:get_all_values(provider, Opts) of + [] -> + []; + Providers -> + {add_providers, Providers} + end; +create(add_providers, Opts) -> + Providers = proplists:get_value(add_providers, Opts, []), + {add_providers, Providers}; +create(providers, Opts) -> + Providers = proplists:get_value(providers, Opts, []), + {providers, Providers}; create(_, _) -> []. |