clap-cargo 0.1.2

Re-usable CLI flags for `cargo` plugins
Documentation

clap-cargo

Re-usable CLI flags for cargo plugins

Travis Status Appveyor status Documentation License Crates Status

Install

Add to your Cargo.toml:

[dependencies]
clap-cargo = "0.1"

Examples

// ...
#[derive(Debug, structopt::StructOpt)]
struct Cli {
    #[structopt(flatten)]
    manifest: clap_cargo::Manifest,
    #[structopt(flatten)]
    workspace: clap_cargo::Workspace,
    #[structopt(flatten)]
    features: clap_cargo::Features,
}

Relevant crates

Other crates that might be useful for cargo plugins:

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.