← Back to team overview

sikuli-driver team mailing list archive

[Bug 993062] Re: [request] sikuli-script.jar should handle --args the same way sikuli-ide.jar does

 

** Tags added: scriptrun

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/993062

Title:
  [request] sikuli-script.jar should handle --args the same way sikuli-
  ide.jar does

Status in Sikuli:
  Fix Committed

Bug description:
  using 
  java -jar "%SIKULI_HOME%\sikuli-script.jar" testArgv.sikuli --args "firstargument"

  prints sys.argv correctly:

  testArgv.sikuli
  --args
  firstargument

  but terminates the script with
  [error] Can't run this Sikuli script: --args
  java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  ....

  using
  java -jar "%SIKULI_HOME%\sikuli-ide.jar" -r testArgv.sikuli --args "firstargument"

  works as expected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/993062/+subscriptions


References