diff --git a/run_synthea.bat b/run_synthea.bat index a9dc57dd1a..666a1f84f7 100644 --- a/run_synthea.bat +++ b/run_synthea.bat @@ -16,10 +16,13 @@ IF "%~1" == "" ( SET syntheaArgs= :loop - SET syntheaArgs=!syntheaArgs!'%1', - @rem Trailing comma ok, don't need to remove it + ECHO ARG = %1 + if "%~1"=="" goto run + SET syntheaArgs=!syntheaArgs!'%~1', shift - if not "%~1"=="" goto loop + goto loop + :run + ECHO syntheaArgs = !syntheaArgs! gradlew.bat run -Params="[!syntheaArgs!]" )