← Back to team overview

sikuli-driver team mailing list archive

[Question #144072]: define my own help parameters

 

New question #144072 on Sikuli:
https://answers.launchpad.net/sikuli/+question/144072

i try use my own script help parameters

for example:
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-u", action="store_false", dest="option", default=True, help="Up system")
(options, args) = parser.parse_args()
print sys.argv[1:]

but if y try use parameters -h, return me
Missing argument for option: args
Exception in thread "main" java.lang.NullPointerException
	at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:699)

any way to solve this problem?

thank you very much =)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.