clap/examples/09_cargo_metadata.rs
Ed Page 0a4a2dd36b docs(examples): Provide app_from_crate! example
This consolidates two `crate_*!` macro examples into a `app_from_crate`
example.

- This is more of what we expect users to use
- We've talked about splitting the `crate_*` macros out into their own
  crate.  This shifts the focus to what clap would be providing long
  term
2021-11-17 15:23:31 -06:00

5 lines
78 B
Rust

use clap::app_from_crate;
fn main() {
app_from_crate!().get_matches();
}