diff --git a/builder b/builder index 46b02f1..5f54395 100644 --- a/builder +++ b/builder @@ -168,31 +168,37 @@ function die () # $1: String, $2: Exit code function usage () { - msg "${BLD}Usage:${DEF} $0 OPTIONS" - msg "" - msg "Build, pack, test and upload your kf2 packages to the Steam Workshop." - msg "" - msg "${BLD}Available options:${DEF}" - msg " -ib, --init-build generate $(basename "$MutBuildConfig") with build parameters" - msg " -it, --init-test generate $(basename "$MutTestConfig") with test parameters" - msg " -i, --init the same as \"./$ScriptName --init-build; ./$ScriptName --init-test\"" - msg " -c, --compile build package(s)" - msg " -b, --brew compress *.upk and place inside *.u" - msg " -bm, --brew-manual the same (almost) as above, but with patched kfeditor by @notpeelz" - msg " -u, --upload upload package(s) to the Steam Workshop" - msg " -t, --test run local single player test with $(basename "$MutTestConfig") parameters" - msg " -q, --quiet run without output" - msg " -w, --warnings do not close kf2editor automatically (to be able to read warnings)" - msg " -nc, --no-colors do not use color output" - msg " -d, --debug print every executed command (script debug)" - msg " -v, --version show version" - msg " -h, --help show this help" - msg "" - msg "${BLD}Short options can be combined, examples:${DEF}" - msg " -cbu compile, brew, upload" - msg " -cbmt compile, brew_manual, run_test" - msg " -wcb compile and brew without closing kf2editor" - msg " etc..." + local HelpMessage="" + + HelpMessage=$(cat <