Home | Trees | Index | Help |
---|
Package PyFoam :: Package Basics :: Module FoamOptionParser :: Class FoamOptionParser |
|
OptionContainer
--+ |OptionParser
--+ | FoamOptionParser
Wrapper to the usual OptionParser to honor the conventions of OpenFOAM-utilities
Options that are not used by the script are passed to the OpenFOAM-applicationMethod Summary | |
---|---|
| |
Return the arguments left after parsing | |
Return the options | |
parse the options | |
Inherited from OptionParser | |
| |
check_values(values : Values, args : [string]) -> (values : Values, args : [string]) | |
| |
| |
error(msg : string) | |
| |
| |
| |
| |
| |
| |
parse_args(args : [string] = sys.argv[1:], values : Values = None) -> (values : Values, args : [string]) Parse the command-line options found in 'args' (default: sys.argv[1:]). | |
print_help(file : file = stdout) | |
print_usage(file : file = stdout) | |
print_version(file : file = stdout) | |
| |
| |
| |
| |
| |
| |
| |
_match_long_opt(opt : string) -> string | |
| |
_process_args(largs : [string], rargs : [string], values : Values) Process command-line arguments and populate 'values', consuming options and arguments from 'rargs'. | |
| |
| |
Inherited from OptionContainer | |
add_option(Option) add_option(opt_str, ..., kwarg=val, ...) | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
Class Variable Summary | |
---|---|
Inherited from OptionParser | |
list |
standard_option_list = []
|
Method Details |
---|
__init__(self,
usage=None,
version=None,
description=None,
interspersed=False)
|
getArgs(self)Return the arguments left after parsing |
getOptions(self)Return the options |
parse(self, nr=3)parse the options
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Jan 22 23:52:48 2007 | http://epydoc.sf.net |