:author2 lastname "`">clap::crate_authors - Rust

Macro clap::crate_authors[][src]

macro_rules! crate_authors {
    ($sep:expr) => { ... };
    () => { ... };
}

Allows you to pull the authors for the app from your Cargo.toml at compile time in the form: "author1 lastname <[email protected]>:author2 lastname <[email protected]>"

You can replace the colons with a custom separator by supplying a replacement string, so, for example, crate_authors!(",\n") would become "author1 lastname <[email protected]>,\nauthor2 lastname <[email protected]>,\nauthor3 lastname <[email protected]>"

Examples

let m = App::new("app")
            .author(crate_authors!("\n"))
            .get_matches();