Macro clap::crate_license [−][src]
macro_rules! crate_license { () => { ... }; }
Expand description
Allows you to pull the licence from your Cargo.toml at compile time. If the license
field is
empty, then the licence-field
is read. If both fields are empty, then an empty string is
returned.
Examples
let m = App::new("app") .license(crate_license!()) .get_matches();