MCPcopy Create free account
hub / github.com/StackStorm/st2 / parse_args

Function parse_args

st2tests/st2tests/config.py:42–50  ·  view source on GitHub ↗
(args=None, coordinator_noop=True)

Source from the content-addressed store, hash-verified

40
41
42def parse_args(args=None, coordinator_noop=True):
43 common_config.use_st2_env_vars(cfg.CONF)
44 _setup_config_opts(coordinator_noop=coordinator_noop)
45
46 kwargs = {}
47 if USE_DEFAULT_CONFIG_FILES:
48 kwargs["default_config_files"] = [DEFAULT_CONFIG_FILE_PATH]
49
50 cfg.CONF(args=args or [], **kwargs)
51
52
53def _setup_config_opts(coordinator_noop=True):

Callers

nothing calls this directly

Calls 1

_setup_config_optsFunction · 0.85

Tested by

no test coverage detected