anchor.diff:  rem There are problems with -delete_original in exiftool, manually remove the file
   del %LOCALOUTNAME%_original
   exit /b 0
  -
  -:END
  
positive.code: }
  
  print_help() {
    echo "Small script to stitch raw panorama files."
    echo "Raw meaning two fisheye images side by side."
    echo -e "Script originally writen for Samsung Gear 360.\n"
    echo -e "Usage:\n$0 [-q|--quality QUALITY] infile [outputfile] [hugintemplate]\n"
    echo "Where infile is a panorama file from camera, it can"
    echo "be a wildcard (ex. *.JPG)."
    echo "output parameter and hugintemplate are optional, defaults will"
    echo -e "be assumed if they are not given\n"
    echo "-q|--quality will set the JPEG quality to QUALITY"
    echo "-h|--help    prints help"
  }
  
  
negative.code:   if /i "%SWITCH%" == "q" (
      shift
      set JPGQUALITY=%1
    )
    if /i "%SWITCH%" == "h" (
      goto NOARGS
    )
    if /i "%SWITCH%" == "o" (
      shift
      set OUTDIR=%1
    )
  ) else (
    if %PARAMCOUNT% EQU 0 set PROTOINNAME=%_TMP%
    if %PARAMCOUNT% EQU 1 set PTOTMPL=%_TMP%
    set /a PARAMCOUNT+=1
  )
  shift & goto PARAMLOOP
  