()
| 239 | } |
| 240 | |
| 241 | fn 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] |
| 258 | async fn main() -> Result<()> { |
no test coverage detected