MCPcopy Create free account
hub / github.com/ccusage/ccusage / parse_all_command

Function parse_all_command

rust/crates/ccusage-cli/src/parser.rs:271–291  ·  view source on GitHub ↗
(
    parser: &mut ArgParser,
    mut shared: SharedArgs,
    kind: AgentReportKind,
    _config: &dyn CliConfig,
)

Source from the content-addressed store, hash-verified

269}
270
271fn 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
293fn parse_top_level_session_command(
294 parser: &mut ArgParser,

Callers 1

parse_commandFunction · 0.85

Calls 3

parse_shared_argFunction · 0.85
peekMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected