PyDocs

Nav

Command-line interface libraries

OptionParser.set_defaults

  • OptionParser.set_defaults(dest=value, ...)
Set default values for several option destinations at once. Using set_defaults() is the preferred way to set default values for options, since multiple options can share the same destination. For example, if several “mode” options all set the same destination, any one of them can set the default, and the last one wins:
0 Examples
No examples for optparse/OptionParser.set_defaults.
See Also
No see-alsos for optparse/OptionParser.set_defaults
0 Notes
No notes for OptionParser.set_defaults