anchor.diff:  key="$1"
   
   case $key in
  -    -q|--quality)
  -      JPGQUALITY="$2"
  -      # Two shifts because there's no shift in the loop
  -      # otherwise we can't handle just "-h" option
  -      shift
  -      shift
  -      ;;
  -    -h|--help)
  -      print_help
  -      shift
  -      exit 0
  -      ;;
  -    -o|--output)
  -      OUTDIR="$2"
  -      shift
  -      shift
  -      ;;
  -    -g|--gallery)
  -      CREATEGALLERY=yes
  -      shift
  -      ;;
  -    *)
  -      break
  +  -q|--quality)
  +    JPGQUALITY="$2"
  +    # Two shifts because there's no shift in the loop
  +    # otherwise we can't handle just "-h" option
  +    shift
  +    shift
       ;;
  +  -h|--help)
  +    print_help
  +    shift
  +    exit 0
  +    ;;
  +  -o|--output)
  +    OUTDIR="$2"
  +    shift
  +    shift
  +    ;;
  +  -g|--gallery)
  +    CREATEGALLERY=yes
  +    shift
  +    ;;
  +  *)
  +    break
  +  ;;
   esac
   done
   
  
positive.code: :<<"remIGNORE_THIS_LINE"
  @echo off
  goto :CMDSCRIPT
  remIGNORE_THIS_LINE
  
  # This is a small script to stitch panorama images produced
  # by Samsung Gear360
  #
  # Trick with Win/Linux from here:
  # http://stackoverflow.com/questions/17510688/single-script-to-run-in-both-windows-batch-and-linux-bash
  
negative.code: OUTTMPNAME="out"
  JPGQUALITY=97
  PTOJPGFILENAME="dummy.jpg"
  GALLERYDIR="html"
  GALLERYFILELIST="filelist.txt"
  
  # Clean-up function
  clean_up() {
    if [ -d "$TEMPDIR" ]; then
      rm -rf "$TEMPDIR"
    fi
  }
  
  # Function to check if a command fails, arguments:
  