mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
65c2350aa3
Color are now only used when outputting to a termainal/TTY. There are three new settings as well which can be used to control color output, they are: * `AppSettings::ColorAuto`: The default, and will only output color when outputting to a terminal or TTY * `AppSettings::ColorAlways`: Outputs color no matter where the output is going * `AppSettings::ColorNever`: Never colors output This now allows one to use things like command line options, or environmental variables to turn colored output on/off. Closes #512
76 lines
1.9 KiB
TOML
76 lines
1.9 KiB
TOML
[package]
|
|
|
|
name = "clap"
|
|
version = "2.6.0"
|
|
authors = ["Kevin K. <kbknapp@gmail.com>"]
|
|
exclude = ["examples/*", "clap-test/*", "tests/*", "benches/*", "*.png", "clap-perf/*", "*.dot"]
|
|
description = "A simple to use, efficient, and full featured Command Line Argument Parser"
|
|
repository = "https://github.com/kbknapp/clap-rs.git"
|
|
documentation = "http://kbknapp.github.io/clap-rs"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
keywords = ["argument", "command", "arg", "parser", "parse"]
|
|
|
|
[dependencies]
|
|
bitflags = "~0.5"
|
|
vec_map = "~0.6"
|
|
libc = { version = "~0.2.9", optional = true }
|
|
ansi_term = { version = "~0.7.2", optional = true }
|
|
strsim = { version = "~0.4.0", optional = true }
|
|
yaml-rust = { version = "~0.3.2", optional = true }
|
|
clippy = { version = "=0.0.64", optional = true }
|
|
unicode-width = { version = "~0.1.3", optional = true }
|
|
|
|
[dev-dependencies]
|
|
regex = "~0.1.69"
|
|
|
|
[features]
|
|
default = ["suggestions", "color", "wrap_help"]
|
|
suggestions = ["strsim"]
|
|
color = ["ansi_term", "libc"]
|
|
yaml = ["yaml-rust"]
|
|
wrap_help = ["libc", "unicode-width"]
|
|
lints = ["clippy", "nightly"]
|
|
nightly = [] # for building with nightly and unstable features
|
|
unstable = [] # for building with unstable features on stable Rust
|
|
debug = [] # for building with debug messages
|
|
travis = ["lints", "nightly"] # for building with travis-cargo
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
debug = false
|
|
rpath = false
|
|
lto = true
|
|
debug-assertions = false
|
|
# codegen-units ignored with lto=true
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = true
|
|
rpath = false
|
|
lto = false
|
|
debug-assertions = true
|
|
codegen-units = 4
|
|
|
|
[profile.test]
|
|
opt-level = 1
|
|
debug = true
|
|
rpath = false
|
|
lto = false
|
|
debug-assertions = true
|
|
codegen-units = 2
|
|
|
|
[profile.bench]
|
|
opt-level = 3
|
|
debug = false
|
|
rpath = false
|
|
lto = true
|
|
debug-assertions = false
|
|
|
|
[profile.doc]
|
|
opt-level = 0
|
|
debug = true
|
|
rpath = false
|
|
lto = false
|
|
debug-assertions = true
|
|
codegen-units = 4
|