(args: &[String])
| 652 | } |
| 653 | |
| 654 | fn 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 | |
| 667 | fn agent_filter_option_error(args: &[String]) -> Option<String> { |
| 668 | let allows_short_active = blocks_command_tokens(args); |
no test coverage detected