diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2014-07-15 08:41:58 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2014-07-15 08:41:58 -0400 |
commit | 353af1cdba8f48c0c0355d726c532cc942b69cb0 (patch) | |
tree | 7b809dc45d315824d3973f690b7a46046a1a6ca5 | |
parent | 3824b52b8952857bb3a262141921792cc2db0189 (diff) | |
parent | 41095e73e2b58ac134e300236df247989bc485c0 (diff) |
Merge pull request #307 from lrascao/add_bootstrap_usage
bootstrap now accepts --help usage flag
-rwxr-xr-x | bootstrap | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -3,6 +3,14 @@ %% ex: ft=erlang ts=4 sw=4 et main(Args) -> + case lists:member("--help", Args) of + true -> + usage(), + halt(0); + false -> + ok + end, + %% Get a string repr of build time Built = build_time(), @@ -89,6 +97,11 @@ main(Args) -> "Place this script anywhere in your path\n" "and you can use rebar to build OTP-compliant apps.\n"). +usage() -> + io:format("Usage: bootstrap [OPTION]...~n"), + io:format(" force=1 unconditional build~n"), + io:format(" debug add debug information~n"). + is_otp(OtpInfo, Regex) -> case re:run(OtpInfo, Regex, [{capture, none}]) of match -> true; |