anchor.diff:  :: Ring - native Windows LRC project generator
   
   @echo off
  -setlocal
  -
   if "%1" == "/?" goto Usage
   if "%~1" == "" goto Usage
   
  
positive.code: 
  if "%1"=="gen" (
      set doGen=Y
  ) else if "%1"=="build" (
      set doBuild=Y
  ) else (
      goto Usage
  )
  
  set arch=N
  
  
negative.code: echo:
  echo The correct usage is:
  echo:
  echo     %SCRIPTNAME% [action] [architecture] [version] [version_para]
  echo:
  echo where
  echo:
  echo [action]           is: gen   ^| build
  echo [architecture]     is: x86   ^| x64
  echo [version]          is: version - optional
  echo [version_para]     is: 5.9.4 ^| Qt version installed
  echo:
  echo For example:
  echo     %SCRIPTNAME% gen x86                    - gen x86 static lib vs projects for qtwrapper/lrc for Qt version 5.9.4
  echo     %SCRIPTNAME% gen x86 version 5.12.0     - gen x86 static lib vs projects for qtwrapper/lrc for Qt version 5.12.0
  echo     %SCRIPTNAME% build x64                  - build x64 qtwrapper/lrc static libs
  echo:
  goto :eof
  
  :cleanup
  endlocal
  if %ERRORLEVEL% geq 1 (
      echo [91m%command% failed[0m
      exit %ERRORLEVEL%
  ) else (
      echo [92m%command% succeeded[0m
      exit /B %ERRORLEVEL%
  )
  