Pass command line argument with Sikuli Standard Commandline Option characters

Asked by Sunil

Hello,

I'm passing command line argument(s) with sys.argv[1:] and for most of them it works. There were 3-4 args which when used immediately failed/aborted the Sikuli run, without any error. On analyzing, I observed that all these arguments are starting with either of "-rxxxx", "-sxxxx" or "-txxxx". There appear a conflict with the Sikuli standard command line arguments (-r, -s, -t) and those I used, although I'm using a string (e.g. "-report", "-test") rather than a single character.

The question is, how to pass such arguments that start with standard command line arguments (-r, -s. -t)?

Thanks.

Revision history for this message
RaiMan (raimund-hocke) said :
#1

are you aware of the fact, that your private args have to be after --args ?

Revision history for this message
Sunil (snakum) said :
#2

Hi Raimund,

Thanks for responding my query. Yes, I did use the --args before passing the arguments and most of them work. The problem occurred only with about 4 of them and they do start with these r, s, t letters. So it is my assumption that the problem is because of these letters also being used as standard command line arguments.

Thanks,

Revision history for this message
RaiMan (raimund-hocke) said :
#3

This is a bug (I created one) and there is no workaround currently.