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

Bug #993062 reported by RaiMan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

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.

Tags: scriptrun
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
RaiMan (raimund-hocke)
tags: added: scriptrun
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.