1
0

update help a little

This commit is contained in:
GenZmeY 2022-03-20 06:39:36 +03:00
parent 93c5579da3
commit 3e9e926a2d

14
builder
View File

@ -98,7 +98,7 @@ ArgVersion="false"
ArgHelp="false" ArgHelp="false"
ArgDebug="false" ArgDebug="false"
ArgQuiet="false" ArgQuiet="false"
ArgWarnings="false" ArgHoldEditor="false"
ArgNoColors="false" ArgNoColors="false"
ArgForce="false" ArgForce="false"
@ -201,7 +201,7 @@ ${BLD}Available options:${DEF}
-t, --test run local single player test -t, --test run local single player test
-f, --force overwrites existing files when used with --init -f, --force overwrites existing files when used with --init
-q, --quiet run without output -q, --quiet run without output
-w, --warnings do not close kf2editor automatically (to be able to read warnings) -he, --hold-editor do not close kf2editor automatically
-nc, --no-colors do not use color output -nc, --no-colors do not use color output
-d, --debug print every executed command (script debug) -d, --debug print every executed command (script debug)
-v, --version show version -v, --version show version
@ -451,7 +451,7 @@ function merge_package () # $1: What, $2: Where
msg "merge $1 into $2" msg "merge $1 into $2"
if is_true "$ArgWarnings"; then if is_true "$ArgHoldEditor"; then
CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditorMergePackages") make $1 $2" CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditorMergePackages") make $1 $2"
else else
ModificationTime=$(stat -c %y "$KFWin64/$2") ModificationTime=$(stat -c %y "$KFWin64/$2")
@ -588,7 +588,7 @@ function compile ()
msg "compilation" msg "compilation"
if is_true "$ArgWarnings"; then if is_true "$ArgHoldEditor"; then
CMD //C "$(cygpath -w "$KFEditor") make $StripSourceArg -useunpublished" CMD //C "$(cygpath -w "$KFEditor") make $StripSourceArg -useunpublished"
Logfile=$(find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" ") Logfile=$(find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" ")
parse_log "$Logfile" parse_log "$Logfile"
@ -677,7 +677,7 @@ function brew ()
mkdir -p "$KFPublishBrewedPC" mkdir -p "$KFPublishBrewedPC"
if is_true "$ArgWarnings"; then if is_true "$ArgHoldEditor"; then
CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditor") brewcontent -platform=PC $PackageUpload -useunpublished" CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditor") brewcontent -platform=PC $PackageUpload -useunpublished"
if ! brewed; then if ! brewed; then
brew_cleanup brew_cleanup
@ -828,6 +828,7 @@ function parse_combined_params () # $1: Combined short parameters
if [[ "$Position" -ge "$Length" ]]; then break; fi if [[ "$Position" -ge "$Length" ]]; then break; fi
case "${Param:$Position:2}" in case "${Param:$Position:2}" in
bm ) ((Position+=2)); ArgBrewManual="true" ;; bm ) ((Position+=2)); ArgBrewManual="true" ;;
he ) ((Position+=2)); ArgHoldEditor="true" ;;
nc ) ((Position+=2)); ArgNoColors="true" ;; nc ) ((Position+=2)); ArgNoColors="true" ;;
esac esac
@ -842,7 +843,6 @@ function parse_combined_params () # $1: Combined short parameters
t ) ((Position+=1)); ArgTest="true" ;; t ) ((Position+=1)); ArgTest="true" ;;
d ) ((Position+=1)); ArgDebug="true" ;; d ) ((Position+=1)); ArgDebug="true" ;;
q ) ((Position+=1)); ArgQuiet="true" ;; q ) ((Position+=1)); ArgQuiet="true" ;;
w ) ((Position+=1)); ArgWarnings="true" ;;
f ) ((Position+=1)); ArgForce="true" ;; f ) ((Position+=1)); ArgForce="true" ;;
* ) die "Unknown short option: -${Param:$Position:1}" 1 ;; * ) die "Unknown short option: -${Param:$Position:1}" 1 ;;
esac esac
@ -864,7 +864,7 @@ function parse_params () # $@: Args
-t | --test ) ArgTest="true" ;; -t | --test ) ArgTest="true" ;;
-d | --debug ) ArgDebug="true" ;; -d | --debug ) ArgDebug="true" ;;
-q | --quiet ) ArgQuiet="true" ;; -q | --quiet ) ArgQuiet="true" ;;
-w | --warnings ) ArgWarnings="true" ;; -he | --hold-editor ) ArgHoldEditor="true" ;;
-nc | --no-color ) ArgNoColors="true" ;; -nc | --no-color ) ArgNoColors="true" ;;
-f | --force ) ArgForce="true" ;; -f | --force ) ArgForce="true" ;;
--* ) die "Unknown option: ${1}" 1 ;; --* ) die "Unknown option: ${1}" 1 ;;