How to use OptionParser from Python module optparse
Asked by
Jonathan Antognini
i try use my own script help parameters
for example:
from optparse import OptionParser
parser = OptionParser()
parser.
(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.
at org.sikuli.
any way to solve this problem?
thank you very much =)
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.