anyconfig.cli

CLI frontend module for anyconfig.

anyconfig.cli.to_log_level(level)
Parameters:level – Logging level in int = 0 .. 2
>>> to_log_level(0) == logging.WARN
True
>>> to_log_level(5)  
Traceback (most recent call last):
    ...
ValueError: wrong log level passed: 5
>>>
anyconfig.cli.make_parser(defaults=None)
Parameters:defaults – Default option values
anyconfig.cli.main(argv=None)
Parameters:argv – Argument list to parse or None (sys.argv will be set).