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

Function report_flag_alias_error

rust/crates/ccusage-cli/src/parser.rs:654–665  ·  view source on GitHub ↗
(args: &[String])

Source from the content-addressed store, hash-verified

652}
653
654fn report_flag_alias_error(args: &[String]) -> Option<String> {
655 let flag = args.iter().find(|arg| {
656 matches!(
657 arg.as_str(),
658 "--daily" | "--weekly" | "--monthly" | "--session" | "--blocks" | "--statusline"
659 )
660 })?;
661 Some(format!(
662 "Report flags like {flag} are not supported. Use \"ccusage {}\" instead.",
663 flag.trim_start_matches("--")
664 ))
665}
666
667fn agent_filter_option_error(args: &[String]) -> Option<String> {
668 let allows_short_active = blocks_command_tokens(args);

Callers 1

Calls 1

findMethod · 0.80

Tested by

no test coverage detected