MCPcopy Index your code
hub / github.com/RustPython/RustPython / help

Function help

src/settings.rs:195–199  ·  view source on GitHub ↗
(parser: lexopt::Parser)

Source from the content-addressed store, hash-verified

193}
194
195fn help(parser: lexopt::Parser) -> ! {
196 let usage = USAGE_STRING.replace("{PROG}", parser.bin_name().unwrap_or("rustpython"));
197 print!("{usage}");
198 std::process::exit(0);
199}
200
201fn version() -> ! {
202 println!("Python {}", rustpython_vm::version::get_version());

Callers 1

parse_argsFunction · 0.70

Calls 2

exitFunction · 0.50
replaceMethod · 0.45

Tested by

no test coverage detected