optparse_required module¶
Module to extend optparse, it add required options and new types to use into gui module.
Classes:
-
class
pymodis.optparse_required.OptionParser(**kwargs)[source]¶ Bases:
optparse.OptionParserExtend optparse.OptionParser
-
class
pymodis.optparse_required.OptionWithDefault(*opts, **attrs)[source]¶ Bases:
optparse.OptionExtend optparse.Option add required to the attributes and some new types for the GUI
-
ATTRS= ['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar', 'required']¶
-
TYPES= ('string', 'int', 'long', 'float', 'complex', 'choice', 'file', 'output', 'directory')¶
-
pyModis