lmpy.tools._config_parser
Module containing a tool for parsing a configuration file for argparse.
Module Contents
Functions
|
Process arguments including filling in those provided by configuration file. |
|
Get a logger object (or None) for the provided parameters. |
- lmpy.tools._config_parser._process_arguments(parser, config_arg=None)[source]
Process arguments including filling in those provided by configuration file.
- Parameters
parser (argparse.ArgumentParser) – An argparse.ArgumentParser with parameters.
config_arg (str) – If provided, try to read configuration file for additional arguments.
- Returns
- An augmented Namespace with any parameters specified in a
configuration file.
- Return type
argparse.Namespace
- Raises
FileNotFoundError – on non-existent config_file.