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

Function print_version_and_exit

rust/crates/ccusage-cli/src/help.rs:15–18  ·  view source on GitHub ↗
(version: &str)

Source from the content-addressed store, hash-verified

13include!(concat!(env!("OUT_DIR"), "/cli-help.rs"));
14
15pub(crate) fn print_version_and_exit(version: &str) -> ! {
16 println!("ccusage {version}");
17 process::exit(0);
18}
19
20pub(crate) fn print_help_and_exit(args: &[String]) -> ! {
21 println!("{}", help_text_for_args(args));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected