| 9 | |
| 10 | |
| 11 | def 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 | |
| 38 | def main(argv: typing.Optional[list[str]] = None) -> int: |