anchor.diff:  
   SETLOCAL EnableDelayedExpansion
   
  -:: Global files
  -SET ERROR_FILE=error.txt
  -SET RESPONSE_FILE=response.txt
  -SET UPLOAD_ID_FILE=upload-id.txt
  -SET ETAGS_JSON=%CD%\upload-part-etags.json
  -
  +:: Global paths
  +SET tempDir=%TEMP%\s3-multipart-upload
  +SET ERROR_FILE=%tempDir%\error.txt
  +SET RESPONSE_FILE=%tempDir%\response.txt
  +SET UPLOAD_ID_FILE=%tempDir%\upload-id.txt
  +SET ETAGS_JSON=%tempDir%\upload-part-etags.json
  +
  +IF NOT EXIST "%tempDir%" MKDIR "%tempDir%"
   TYPE NUL > "%ERROR_FILE%"
   TYPE NUL > "%RESPONSE_FILE%"
   TYPE NUL > "%UPLOAD_ID_FILE%"
  
positive.code: IF "%arg%"=="" GOTO continueParse
  
  :: Parse part directory path
  IF NOT "%arg:~0,1%"=="-" (
      IF DEFINED filedir (
          ECHO Error: You may provide the path to only one directory with object parts to upload! >> "%ERROR_FILE%"
          EXIT /B 1
      ) ELSE (
          SET filedir=%arg%
          SHIFT
          GOTO loop
      )
  
negative.code:     SET arg=%2
      SET good=true
      IF "!arg!"=="" SET good=false
      IF "!arg:~0,1!"=="-" (SET good=false)
      IF "!arg:~0,1!"=="/" (SET good=false)
      IF !good!==true (SHIFT) ELSE (ECHO Error: --profile requires an argument >> "%ERROR_FILE%" & EXIT /B 1)
      SET profile=!arg!
      SHIFT
  