ConfigArgumentParser#
- class ConfigArgumentParser#
Bases:
object
Wrapper combining ConfigParser and ArgumentParser.
- config#
A
ConfigParser
.
- parser#
An
ArgumentParser
.
- namespace#
An object returned by
parse_args
.
Methods
Add arguments to parser and parse arguments.
Parse arguments and update object attributes.
Read and parse a filename or an iterable of filenames.
Read and parse a filename of Python script.
Read configuration from a given string.
- read(filenames)#
Read and parse a filename or an iterable of filenames.
Return list of successfully read files.
- read_string(string)#
Read configuration from a given string.
- read_py(filename)#
Read and parse a filename of Python script.
- parse_args(args=None, *, shorts='')#
Add arguments to parser and parse arguments.
- parse_obj(obj, args=None, *, shorts='')#
Parse arguments and update object attributes.