fipy.tools.parser¶
Functions
|
This is a wrapper function for the python optparse module. |
- fipy.tools.parser.parse(larg, action=None, type=None, default=None)¶
This is a wrapper function for the python optparse module. Unfortunately optparse does not allow command line arguments to be ignored. See the documentation for optparse for more details. Returns the argument value.
- Parameters:
larg (
str
) – Argument to be parsed.action (
{`'store'`, `'store_true'`, `'store_false'`, `'store_const'`, `'append'`, `'count'`, `'callback'`}
) – Basic type of action to be taken when this argument is encountered at the command line. See https://docs.python.org/2/library/argparse.html#actiontype (
type
) – Type to which the command-line argument should be converteddefault – Value produced if the argument is absent from the command line