anchor.diff:  set tagui_test_mode=false
   rem check test parameter to run flow as casperjs test automation script
   if "%arg2%"=="test" (
  -set arg2=
  -set tagui_test_mode=true
  +	set arg2=
  +	set tagui_test_mode=true
   )
   if "%arg3%"=="test" (
  -set arg3=
  -set tagui_test_mode=true
  +	set arg3=
  +	set tagui_test_mode=true
   )
   if "%arg4%"=="test" (
  -set arg4=
  -set tagui_test_mode=true
  +	set arg4=
  +	set tagui_test_mode=true
   )
   if "%arg5%"=="test" (
  -set arg5=
  -set tagui_test_mode=true
  +	set arg5=
  +	set tagui_test_mode=true
   )
   if "%arg6%"=="test" (
  -set arg6=
  -set tagui_test_mode=true
  +	set arg6=
  +	set tagui_test_mode=true
   )
   if "%arg7%"=="test" (
  -set arg7=
  -set tagui_test_mode=true
  +	set arg7=
  +	set tagui_test_mode=true
   )
   if "%arg8%"=="test" (
  -set arg8=
  -set tagui_test_mode=true
  +	set arg8=
  +	set tagui_test_mode=true
   )
   if "%arg9%"=="test" (
  -set arg9=
  -set tagui_test_mode=true
  +	set arg9=
  +	set tagui_test_mode=true
   )
   
   set tagui_quiet_mode=false
   rem check quiet parameter to run flow quietly by only showing explicit output
   if "%arg2%"=="quiet" (
  -set arg2=
  -set tagui_quiet_mode=true
  +	set arg2=
  +	set tagui_quiet_mode=true
   )
   if "%arg3%"=="quiet" (
  -set arg3=
  -set tagui_quiet_mode=true
  +	set arg3=
  +	set tagui_quiet_mode=true
   )
   if "%arg4%"=="quiet" (
  -set arg4=
  -set tagui_quiet_mode=true
  +	set arg4=
  +	set tagui_quiet_mode=true
   )
   if "%arg5%"=="quiet" (
  -set arg5=
  -set tagui_quiet_mode=true
  +	set arg5=
  +	set tagui_quiet_mode=true
   )
   if "%arg6%"=="quiet" (
  -set arg6=
  -set tagui_quiet_mode=true
  +	set arg6=
  +	set tagui_quiet_mode=true
   )
   if "%arg7%"=="quiet" (
  -set arg7=
  -set tagui_quiet_mode=true
  +	set arg7=
  +	set tagui_quiet_mode=true
   )
   if "%arg8%"=="quiet" (
  -set arg8=
  -set tagui_quiet_mode=true
  +	set arg8=
  +	set tagui_quiet_mode=true
   )
   if "%arg9%"=="quiet" (
  -set arg9=
  -set tagui_quiet_mode=true
  +	set arg9=
  +	set tagui_quiet_mode=true
   )
   
   set tagui_html_report=false
   rem check report parameter to generate html formatted automation log
   if "%arg2%"=="report" (
  -set arg2=
  -set tagui_html_report=true
  +	set arg2=
  +	set tagui_html_report=true
   )
   if "%arg3%"=="report" (
  -set arg3=
  -set tagui_html_report=true
  +	set arg3=
  +	set tagui_html_report=true
   )
   if "%arg4%"=="report" (
  -set arg4=
  -set tagui_html_report=true
  +	set arg4=
  +	set tagui_html_report=true
   )
   if "%arg5%"=="report" (
  -set arg5=
  -set tagui_html_report=true
  +	set arg5=
  +	set tagui_html_report=true
   )
   if "%arg6%"=="report" (
  -set arg6=
  -set tagui_html_report=true
  +	set arg6=
  +	set tagui_html_report=true
   )
   if "%arg7%"=="report" (
  -set arg7=
  -set tagui_html_report=true
  +	set arg7=
  +	set tagui_html_report=true
   )
   if "%arg8%"=="report" (
  -set arg8=
  -set tagui_html_report=true
  +	set arg8=
  +	set tagui_html_report=true
   )
   if "%arg9%"=="report" (
  -set arg9=
  -set tagui_html_report=true
  +	set arg9=
  +	set tagui_html_report=true
   )
   
   rem concatenate parameters in order to fix issue when calling casperjs test
  
positive.code: setlocal enableextensions enabledelayedexpansion
  
  if "%~1"=="" (
  echo tagui: missing parameter^(s^) - use this syntax and below options to run ./tagui flow_filename option^(s^)
  echo.
  echo firefox - run on visible Firefox web browser instead of invisible browser ^(first install Firefox^)
  echo report - generate a web report for easy sharing of run results ^(default is only a text log file^)
  
negative.code: move "%flow_file%.log.tmp" "%flow_file%.log" > nul
  
  rem check report option to generate html automation log
  for /f "usebackq" %%f in ('%flow_file%.log') do set file_size=%%~zf
  if %file_size% gtr 0 if %tagui_html_report%==true (
  	php -q tagui_report.php "%flow_file%"
  	gawk "sub(\"$\", \"\")" "%flow_file%.html" > "%flow_file%.html.tmp"
  	move "%flow_file%.html.tmp" "%flow_file%.html" > nul
  )
  
  rem change back to initial directory where tagui is called
  cd /d "%initial_dir%"
  