Ejemplo n.º 1
0
 def inject_arguments(  # pylint: disable=no-self-use,protected-access
     self, parser: ArgumentParser
 ) -> None:
     """Inject arguments."""
     parser._default_config_files = [
         "/local/config.yaml",
         "/secrets/config.yaml",
     ]
     parser._ignore_unknown_config_file_keys = True
     parser.add(
         "-c",
         "--config",
         is_config_file=True,
         help="config file path",
         env_var="CONFIG",  # make ENV match default metavar
     )