Add wrap_help feature to clap

This commit is contained in:
QuarticCat
2021-06-05 20:39:59 +08:00
parent 1b3d0b2724
commit 15a867636f
2 changed files with 17 additions and 6 deletions

12
Cargo.lock generated
View File

@@ -94,6 +94,7 @@ dependencies = [
"atty",
"bitflags",
"strsim",
"term_size",
"textwrap",
"unicode-width",
"vec_map",
@@ -419,6 +420,16 @@ dependencies = [
"winapi",
]
[[package]]
name = "term_size"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9"
dependencies = [
"libc",
"winapi",
]
[[package]]
name = "terminal_size"
version = "0.1.15"
@@ -435,6 +446,7 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
dependencies = [
"term_size",
"unicode-width",
]

View File

@@ -22,7 +22,7 @@ path = "src/main.rs"
[dependencies]
ansi_term = "0.12"
clap = "=2.33"
clap = { version = "=2.33", features = ["wrap_help"] }
lscolors = "0.7"
num_cpus = "1"
terminal_size = "0.1"
@@ -40,7 +40,6 @@ winapi-util = "0.1"
assert_cmd = "1"
tempfile = "=3"
[[test]]
name = "integration"
path = "tests/tests.rs"