mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 14:54:15 +00:00
b7793a2f4d
* feat: adds App::with_defaults to automatically use crate_authors! and crate_version! macros One can now use ```rust let a = App::with_defaults("My Program"); // same as let a2 = App::new("My Program") .version(crate_version!()) .author(crate_authors!()); ``` Closes #600 * imp(YAML Errors): vastly improves error messages when using YAML When errors are made while developing, the panic error messages have been improved instead of relying on the default panic message which is extremely unhelpful. Closes #574 * imp(Completions): uses standard conventions for bash completion files, namely '{bin}.bash-completion' Closes #567 * imp(Help): automatically moves help text to the next line and wraps when term width is determined to be too small, or help text is too long Now `clap` will check if it should automatically place long help messages on the next line after the flag/option. This is determined by checking to see if the space taken by flag/option plus spaces and values doesn't leave enough room for the entirety of the help message, with the single exception of of if the flag/option/spaces/values is less than 25% of the width. Closes #597 * tests: updates help tests to new forced new line rules * fix(Groups): fixes some usage strings that contain both args in groups and ones that conflict with each other Args that conflict *and* are in a group will now only display in the group and not in the usage string itself. Closes #616 * chore: updates dep graph Closes #633 * chore: clippy run * style: changes debug header to match other Rust projects * chore: increase version
85 lines
2.1 KiB
TOML
85 lines
2.1 KiB
TOML
[package]
|
|
|
|
name = "clap"
|
|
version = "2.11.0"
|
|
authors = ["Kevin K. <kbknapp@gmail.com>"]
|
|
exclude = ["examples/*", "clap-test/*", "tests/*", "benches/*", "*.png", "clap-perf/*", "*.dot"]
|
|
repository = "https://github.com/kbknapp/clap-rs.git"
|
|
documentation = "https://docs.rs/clap/"
|
|
homepage = "https://docs.rs/crate/clap/"
|
|
readme = "README.md"
|
|
license = "MIT"
|
|
keywords = ["argument", "command", "arg", "parser", "parse"]
|
|
description = """
|
|
A simple to use, efficient, and full featured Command Line Argument Parser
|
|
"""
|
|
|
|
[dependencies]
|
|
bitflags = "~0.7"
|
|
vec_map = "~0.6"
|
|
libc = { version = "~0.2.9", optional = true }
|
|
ansi_term = { version = "~0.8.0", optional = true }
|
|
strsim = { version = "~0.5.1", optional = true }
|
|
yaml-rust = { version = "~0.3.2", optional = true }
|
|
clippy = { version = "~0.0.85", optional = true }
|
|
unicode-width = "~0.1.3"
|
|
unicode-segmentation = "~0.1.2"
|
|
term_size = { version = "~0.1.0", optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
kernel32-sys = "~0.2.2"
|
|
winapi = "~0.2.8"
|
|
|
|
[dev-dependencies]
|
|
regex = "~0.1.69"
|
|
|
|
[features]
|
|
default = ["suggestions", "color", "wrap_help"]
|
|
suggestions = ["strsim"]
|
|
color = ["ansi_term", "libc"]
|
|
yaml = ["yaml-rust"]
|
|
wrap_help = ["libc", "term_size"]
|
|
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
|