mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
Allow opting out of clap default features. (#46)
This commit is contained in:
parent
cc6dfd2e54
commit
00a1e13fea
2 changed files with 14 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "structopt"
|
||||
version = "0.1.6"
|
||||
version = "0.1.7"
|
||||
authors = ["Guillaume Pinot <texitoi@texitoi.eu>"]
|
||||
description = "Parse command line argument by defining a struct."
|
||||
documentation = "https://docs.rs/structopt"
|
||||
|
@ -10,11 +10,14 @@ categories = ["command-line-interface"]
|
|||
license = "WTFPL"
|
||||
readme = "README.md"
|
||||
|
||||
[features]
|
||||
default = ["clap/default"]
|
||||
|
||||
[badges]
|
||||
travis-ci = { repository = "TeXitoi/structopt" }
|
||||
|
||||
[dependencies]
|
||||
clap = "2.20"
|
||||
clap = { version = "2.20", default-features = false }
|
||||
|
||||
[dev-dependencies]
|
||||
structopt-derive = { path = "structopt-derive", version = "0.1.6" }
|
||||
|
|
|
@ -13,6 +13,15 @@
|
|||
//! little interest. See the
|
||||
//! [`structopt-derive`](https://docs.rs/structopt-derive) crate to
|
||||
//! automatically generate an implementation of this trait.
|
||||
//!
|
||||
//! If you want to disable all the `clap` features (colors,
|
||||
//! suggestions, ..) add `default-features = false` to the `structopt`
|
||||
//! dependency:
|
||||
//! ```toml
|
||||
//! [dependencies]
|
||||
//! structopt = { version = "0.1.0", default-features = false }
|
||||
//! structopt-derive = "0.1.0"
|
||||
//! ```
|
||||
|
||||
extern crate clap as _clap;
|
||||
|
||||
|
|
Loading…
Reference in a new issue