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

Method peek

rust/crates/ccusage-cli/src/arg_parser.rs:25–27  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

23 }
24
25 pub(crate) fn peek(&self) -> Option<&str> {
26 self.args.get(self.index).map(String::as_str)
27 }
28
29 pub(crate) fn next(&mut self) -> Option<String> {
30 let value = self.args.get(self.index)?.clone();

Callers 15

parse_commandFunction · 0.80
parse_all_commandFunction · 0.80
parse_claude_commandFunction · 0.80
parse_codex_commandFunction · 0.80
parse_pi_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected