(
parser: &mut ArgParser,
mut shared: SharedArgs,
kind: AgentReportKind,
_config: &dyn CliConfig,
)
| 269 | } |
| 270 | |
| 271 | fn parse_all_command( |
| 272 | parser: &mut ArgParser, |
| 273 | mut shared: SharedArgs, |
| 274 | kind: AgentReportKind, |
| 275 | _config: &dyn CliConfig, |
| 276 | ) -> Result<Command, String> { |
| 277 | while parser.peek().is_some() { |
| 278 | if matches!(parser.peek(), Some("--all")) { |
| 279 | parser.next(); |
| 280 | continue; |
| 281 | } |
| 282 | parse_shared_arg(parser, &mut shared)?; |
| 283 | } |
| 284 | Ok(Command::All(AgentCommandArgs { |
| 285 | shared, |
| 286 | kind, |
| 287 | pi_path: None, |
| 288 | open_claw_path: None, |
| 289 | codex_speed: CodexSpeed::Auto, |
| 290 | })) |
| 291 | } |
| 292 | |
| 293 | fn parse_top_level_session_command( |
| 294 | parser: &mut ArgParser, |
no test coverage detected