#10443 start-dev: parsing command lines parameters

kc.bat called "shift" twice after parsing "start-dev". But "start-dev" is only one parameter so that "shift" should be called only once or else further command line parameters won't be parsed correctly.

Closes #10443
This commit is contained in:
JPA2015 2022-03-17 16:47:31 +01:00 committed by Bruno Oliveira da Silva
parent bc27c7c464
commit a5a384b4d5

View file

@ -47,7 +47,6 @@ if "%KEY%" == "--debug" (
if "%KEY%" == "start-dev" (
set "CONFIG_ARGS=%CONFIG_ARGS% --profile=dev %KEY% --auto-build"
shift
shift
goto READ-ARGS
)
if not "%KEY:~0,2%"=="--" if "%KEY:~0,2%"=="-D" (
@ -137,4 +136,4 @@ if not "!CONFIG_ARGS:%AUTO_BUILD_OPTION%=!"=="!CONFIG_ARGS!" (
"%JAVA%" %JAVA_RUN_OPTS%
:END
:END