| Home | Trees | Indices | Help |
|
|---|
|
|
Common functions and options definitions for command line
__docformat__ = 'restructuredtext'
Conventions:
Every option (instance of optparse.Option) has prefix "opt". Lists of options
has prefix opts (e.g. opts.common).
Option name should be camelbacked version of .dest for the option.
|
|||
|
Options Just a convinience placeholder for all available options |
|||
|
OptionGroups Group creation is delayed until instance is requested. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
parser = OptionParser(version= "%prog", add_help_option= False
|
|||
opt = Options()
|
|||
opts = OptionGroups(parser)
|
|||
commonopts_list = [opt.verbose, opt.help]
|
|||
optDebug = Option("-d", "--debug", action= "callback", callbac
|
|||
|
|||
parser
|
optDebug
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Mon Feb 23 10:49:46 2009 | http://epydoc.sourceforge.net |