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

Method parse

rust/crates/ccusage-cli/src/parser.rs:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18impl Cli {
19 pub fn parse() -> Self {
20 Self::parse_from(env::args_os()).unwrap_or_else(|message| {
21 eprintln!("{message}");
22 eprintln!("Run 'ccusage --help' for usage.");
23 process::exit(2);
24 })
25 }
26
27 pub fn parse_from<I>(args: I) -> Result<Self, String>
28 where

Callers 3

parse_token_limitFunction · 0.80
parse_commandFunction · 0.80
parse_shared_argFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected