On this page
optparse.make_option
Prev: optparse.IndentedHelpFormatter | Up: optparse | Next: optparse.Option
Rel: optparse.BadOptionError, optparse.check_choice, optparse.HelpFormatter, optparse.IndentedHelpFormatter
Ref: docs.python.org — optparse.make_option
Tags: #public #python3 #stdlib #optparse
Import
import optparse
from optparse import make_option
Signature & Overview
optparse.make_option(*opts, **attrs)
Instance attributes: _short_opts : [string] _long_opts : [string]
Methods & Attributes
make_option.check_value(self, opt, value)—make_option.check_valuemethod/property.make_option.convert_value(self, opt, value)—make_option.convert_valuemethod/property.make_option.get_opt_string(self)—make_option.get_opt_stringmethod/property.make_option.process(self, opt, value, values, parser)—make_option.processmethod/property.make_option.take_action(self, action, dest, opt, value, values, parser)—make_option.take_actionmethod/property.make_option.takes_value(self)—make_option.takes_valuemethod/property.
Usage
import optparse
assert optparse.make_option is optparse.Option
Gotchas
- Alias for
optparse.Option.
REPL Inspect
from optparse import make_option
help(make_option)
Linked from
Related notes
- tuts/python3/stdlib_module/optparse/BadOptionError Linked here; links to this page; shared tags: #optparse, #stdlib
- tuts/python3/stdlib_module/optparse/check_choice Linked here; links to this page; shared tags: #optparse, #stdlib
- tuts/python3/stdlib_module/optparse/HelpFormatter Linked here; links to this page; shared tags: #optparse, #stdlib
- tuts/python3/stdlib_module/optparse/IndentedHelpFormatter Linked here; links to this page; shared tags: #optparse, #stdlib
- tuts/python3/stdlib_module/optparse/Option Linked here; links to this page; shared tags: #optparse, #stdlib
- tuts/python3/stdlib_module/optparse Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/optparse/OptionConflictError shared tags: #optparse, #stdlib
- tuts/python3/stdlib_module/optparse/OptionContainer shared tags: #optparse, #stdlib
- tuts/python3/stdlib_module/optparse/OptionError shared tags: #optparse, #stdlib
- tuts/python3/stdlib_module/optparse/OptionGroup shared tags: #optparse, #stdlib