← Back to team overview

sikuli-driver team mailing list archive

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

 

Public bug reported:

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.

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
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:
  New

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


Follow ups

References