fipy.tools.parser

Functions

parse(larg[, action, type, default])

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#action

  • type (type) – Type to which the command-line argument should be converted

  • default – Value produced if the argument is absent from the command line

Last updated on Jun 26, 2024. Created using Sphinx 7.1.2.