MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / print_help

Function print_help

crates/cargo-lambda-cli/src/main.rs:241–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239}
240
241fn print_help() -> Result<()> {
242 let mut app = App::command();
243 let lambda = app
244 .find_subcommand_mut("lambda")
245 .cloned()
246 .map(|a| a.name("cargo lambda").bin_name("cargo lambda"));
247
248 match lambda {
249 Some(lambda) => lambda.styles(CLAP_STYLING).print_help().into_diagnostic(),
250 None => {
251 println!("Run `cargo lambda --help` to see usage");
252 Ok(())
253 }
254 }
255}
256
257#[tokio::main]
258async fn main() -> Result<()> {

Callers 1

run_subcommandFunction · 0.85

Calls 1

bin_nameMethod · 0.45

Tested by

no test coverage detected