← Back to team overview

sikuli-driver team mailing list archive

[Bug 1444959] Re: sikulix passing arguments --arg not working --- use -- instead

 

Thanks for the reply.

i tried the below commands 
./runsikulix -r test2.sikuli --- 10 
./runsikulix -r test2.sikuli ---args 10

I used --- instead of --

test2.sikuli : 
print sys.argv[1]

The output is -r instead of 10

The command ./runsikulix -h shows the following for user arguments

"------
anything after --
or after something beginning with --
go to script as user parameters (respecting enclosing ")"

But I do not see this working.

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

Title:
  sikulix passing arguments --arg not working --- use -- instead

Status in Sikuli:
  Confirmed

Bug description:
  sikulix1.1.0 ubuntu 12.04 and windows 8.1 64 bit.
  Earlier in sikuli 1.0.1 we passed arguments through --args to the script. The sys.argv[1] in the python script will be the first argument , sys.argv[2] the second argument and so on.
  But in SikuliX 1.1.0 Iam not able to see the value after --args reflected in the variable sys.argv[1].

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


References