CLILoader#
- class CLILoader(*args, **kwargs)#
Bases:
ConfigLoaderLoad config from command line.
This uses the standard module
argparse. The default action isnargs="*", type=str, and for the destination it replaces dots in the key by a replacement string (_DOT).- add_argument(key, trait)#
Add argument to the parser.
- Parameters:
key (str)
trait (TraitType)
- Return type:
None
- allow_kebab: bool = True#
If True (default), allows to replace underscore by hyphens in parameters keys.