python:optparse
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
python:optparse [2010/03/15 12:05] – tkbletsc | python:optparse [2011/03/03 11:31] – tkbletsc | ||
---|---|---|---|
Line 1: | Line 1: | ||
<code python> | <code python> | ||
+ | from optparse import OptionParser | ||
+ | |||
things = { | things = { | ||
' | ' | ||
Line 6: | Line 8: | ||
} | } | ||
parser = OptionParser(" | parser = OptionParser(" | ||
+ | |||
+ | # uncomment if you need to ignore options after the first argument, e.g. " | ||
+ | # parser.disable_interspersed_args() | ||
parser.add_option(" | parser.add_option(" |
python/optparse.txt · Last modified: 2011/06/05 17:40 by tkbletsc