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

Function help_text_for_args

rust/crates/ccusage-cli/src/help.rs:30–34  ·  view source on GitHub ↗
(args: &[String])

Source from the content-addressed store, hash-verified

28}
29
30pub(crate) fn help_text_for_args(args: &[String]) -> String {
31 let args = strip_program_name(args);
32 let tokens = command_tokens(args);
33 help_text_for_tokens(&tokens)
34}
35
36fn strip_program_name(args: &[String]) -> &[String] {
37 if args.first().is_some_and(|arg| is_program_name(arg)) {

Calls 3

strip_program_nameFunction · 0.85
help_text_for_tokensFunction · 0.85
command_tokensFunction · 0.70