MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / build_arg_parser

Function build_arg_parser

tools/agent_seed/cli/bootstrap.py:11–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def build_arg_parser() -> argparse.ArgumentParser:
12 parser = argparse.ArgumentParser(description="Bootstrap demo agent-seed grid automation")
13 parser.add_argument(
14 "--base-url",
15 default="http://127.0.0.1:8000",
16 help="Node API base URL",
17 )
18 parser.add_argument(
19 "--poll-interval",
20 type=float,
21 default=agent_seed_bootstrap_grid.DEFAULT_POLL_INTERVAL_SECONDS,
22 )
23 parser.add_argument(
24 "--timeout",
25 type=float,
26 default=agent_seed_bootstrap_grid.DEFAULT_TIMEOUT_SECONDS,
27 )
28 parser.add_argument(
29 "--scenario",
30 action="append",
31 choices=[scenario.value for scenario in agent_seed_enums.BootstrapScenario],
32 default=None,
33 help="Scenario to run, repeatable (default: grid). all = grid, index, completed, lifecycle",
34 )
35 return parser
36
37
38def main(argv: typing.Optional[list[str]] = None) -> int:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected