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

Function is_shared_flag

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

Source from the content-addressed store, hash-verified

829}
830
831fn is_shared_flag(arg: &str) -> bool {
832 matches!(
833 arg.split_once('=').map_or(arg, |(name, _)| name),
834 "-s" | "--since"
835 | "-u"
836 | "--until"
837 | "-j"
838 | "--json"
839 | "-m"
840 | "--mode"
841 | "-d"
842 | "--debug"
843 | "--debug-samples"
844 | "-o"
845 | "--order"
846 | "-b"
847 | "--breakdown"
848 | "-O"
849 | "--offline"
850 | "--no-offline"
851 | "--color"
852 | "--no-color"
853 | "-z"
854 | "--timezone"
855 | "-q"
856 | "--jq"
857 | "--config"
858 | "--compact"
859 | "--single-thread"
860 | "--no-cost"
861 )
862}
863
864fn parse_cost_mode(value: &str) -> Result<CostMode, String> {
865 match value {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected