| Trees | Indices | Help |
|
|---|
|
|
A class that carried a plugin's configuration. A plugin is responsible for declaring its metadata by calling this configuration object's methods from the args() class method. There are two things that plugin must declare: add_*_arg(): Calling these functions declares an argument for this plugin. See the documentation for that method for details. add_metadata(): This method provides additional metadata about this plugin.
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Add a new argument to the command.
This method is used in the args() class method to add a new command line
arg to the plugin. It is similar to the argparse add_argument() method
but it adds a type parameter which conveys higher level information
about the argument. Currently supported types:
- ArrayIntParser: A list of integers (possibly encoded as hex strings).
- ArrayStringParser: A list of strings.
- Float: A float.
- IntParser: An integer (possibly encoded as a hex string).
- Boolean: A flag - true/false.
- ChoiceArray: A comma separated list of strings which must be from the
choices parameter.
|
Add a requirement for this plugin. Currently supported requirements:
|
Update args with the defaults. If an option in args is None, we update it with the default value for this option. |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Oct 9 03:27:50 2017 | http://epydoc.sourceforge.net |