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

Function option_takes_value

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

Source from the content-addressed store, hash-verified

732}
733
734fn option_takes_value(arg: &str) -> bool {
735 matches!(
736 arg,
737 "-s" | "--since"
738 | "-u"
739 | "--until"
740 | "-m"
741 | "--mode"
742 | "--debug-samples"
743 | "-o"
744 | "--order"
745 | "-z"
746 | "--timezone"
747 | "-q"
748 | "--jq"
749 | "--config"
750 | "-p"
751 | "--project"
752 | "--project-aliases"
753 | "-w"
754 | "--start-of-week"
755 | "-i"
756 | "--id"
757 | "-t"
758 | "--token-limit"
759 | "-n"
760 | "--session-length"
761 | "-B"
762 | "--visual-burn-rate"
763 | "--cost-source"
764 | "--refresh-interval"
765 | "--context-low-threshold"
766 | "--context-medium-threshold"
767 | "--speed"
768 | "--pi-path"
769 | "--open-claw-path"
770 )
771}
772
773fn is_agent_command(command: &str) -> bool {
774 matches!(

Callers 1

command_tokensFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected