File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11@ echo off
22setlocal enabledelayedexpansion
33
4- set CurrentVersion = v1.6.3
4+ set CurrentVersion = v1.6.4
55cls
66
77set " icongray = [7;90m"
@@ -14,31 +14,35 @@ set "textred=[31m"
1414set " formatend = [0m"
1515
1616:ArgParser
17+ set allargs = %*
18+ rem If debug included in args
19+ if not " %allargs% " == " %allargs:--debug =% " (set " par_debug=true" )
20+
1721 set " FLAG = 0"
1822 for %%G in (%* ) DO (
1923 set ARG = %%G
2024 rem if FLAG, record the flag name
2125 echo !ARG! | findstr " \--" > nul && (
2226 if not [" !FLAG! " ]== [" 0" ] ( rem Check if FLAG is set - if it is, then previous was a boolean.
2327 set " par_!FLAG! = true"
24- echo %iconyellow% par_!FLAG! =TRUE%formatend%
28+ if " %par_debug% " == " true " ( echo %iconyellow% par_!FLAG! =TRUE%formatend% )
2529 )
2630 set ARG_NAME = !ARG:~2 !
2731 set " FLAG = !ARG_NAME! "
28- echo %iconyellow% FLAG=!ARG_NAME!%formatend%
32+ if " %par_debug% " == " true " ( echo %iconyellow% FLAG=!ARG_NAME!%formatend% )
2933 ) || (
3034 set " par_!FLAG! = !ARG! "
31- echo %iconyellow% par_!FLAG! =!ARG!%formatend%
35+ if " %par_debug% " == " true " ( echo %iconyellow% par_!FLAG! =!ARG!%formatend% )
3236 set " FLAG = 0"
3337 )
3438 )
3539
3640 if not [" !FLAG! " ]== [" 0" ] ( rem Final boolean catch
3741 set " par_!FLAG! = true"
38- echo %iconyellow% par_!FLAG! =TRUE%formatend%
42+ if " %par_debug% " == " true " ( echo %iconyellow% par_!FLAG! =TRUE%formatend% )
3943 )
4044
41- rem pause
45+ if " %par_debug% " == " true " ( pause)
4246cls
4347
4448if defined par_updated-from (
You can’t perform that action at this time.
0 commit comments