1
0

fast help output

This commit is contained in:
GenZmeY 2022-02-14 03:08:18 +03:00
parent 055cc5558e
commit bfdf98db57

56
builder
View File

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