tree: 7452680497ac21b1de67cd5f153136fc1e59f307 [path history] [tgz]
  1. examples/
  2. src/
  3. .cargo-checksum.json
  4. Cargo.lock
  5. Cargo.toml
  6. LICENSE-APACHE
  7. LICENSE-MIT
  8. README.md
android/vendor/clap-cargo-0.9.1/README.md

clap-cargo

Re-usable CLI flags for cargo plugins

codecov Documentation License Crates Status

Install

Add to your Cargo.toml:

[dependencies]
clap-cargo = "0.9.1"

Examples

// ...
#[derive(Debug, clap::Parser)]
struct Cli {
    #[clap(flatten)]
    manifest: clap_cargo::Manifest,
    #[clap(flatten)]
    workspace: clap_cargo::Workspace,
    #[clap(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.