Trees | Indices | Help |
---|
|
_AbstractParameter --+ | _Option
Represent an option that can be set for a program.
This holds UNIXish options like --append=yes and -a yes, where a value (here "yes") is generally expected.
For UNIXish options like -kimura in clustalw which don't take a value, use the _Switch object instead.
Attributes:
o names -- a list of string names by which the parameter can be referenced (ie. ["-a", "--append", "append"]). The first name in the list is considered to be the one that goes on the commandline, for those parameters that print the option. The last name in the list is assumed to be a "human readable" name describing the option in one word.
o param_types -- a list of string describing the type of parameter, which can help let programs know how to use it. Example descriptions include 'input', 'output', 'file'. Note that if 'file' is included, these argument values will automatically be escaped if the filename contains spaces.
o checker_function -- a reference to a function that will determine if a given value is valid for this parameter. This function can either raise an error when given a bad value, or return a [0, 1] decision on whether the value is correct.
o equate -- should an equals sign be inserted if a value is used?
o description -- a description of the option.
o is_required -- a flag to indicate if the parameter must be set for the program to be run.
o is_set -- if the parameter has been set
o value -- the value of a parameter
|
|||
|
|||
|
|
|
Return the value of this option for the commandline. Includes a trailing space.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Sep 22 19:31:51 2009 | http://epydoc.sourceforge.net |