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

Function is_command

rust/crates/ccusage-cli/src/parser.rs:610–635  ·  view source on GitHub ↗
(arg: &str)

Source from the content-addressed store, hash-verified

608}
609
610fn is_command(arg: &str) -> bool {
611 matches!(
612 arg,
613 "daily"
614 | "monthly"
615 | "weekly"
616 | "session"
617 | "blocks"
618 | "statusline"
619 | "claude"
620 | "codex"
621 | "opencode"
622 | "amp"
623 | "droid"
624 | "codebuff"
625 | "hermes"
626 | "pi"
627 | "goose"
628 | "openclaw"
629 | "kilo"
630 | "copilot"
631 | "gemini"
632 | "kimi"
633 | "qwen"
634 )
635}
636
637fn normalize_legacy_agent_command_args(args: &mut Vec<String>) {
638 let Some(command) = args.first() else {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected