From 4b819457c982ea1e1315fc993b176a912affbffa Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Tue, 6 Oct 2020 13:06:22 +0200 Subject: [PATCH] Enable the strucopt/clap warp help feature --- Cargo.lock | 12 ++++++++++++ Cargo.toml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 0442ed3d9..e68e03bb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -237,6 +237,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bdfa80d47f954d53a35a64987ca1422f495b8d6483c0fe9f7117b36c2a792129" dependencies = [ "bitflags", + "term_size", "textwrap", "unicode-width", ] @@ -1889,6 +1890,16 @@ dependencies = [ "winapi 0.3.8", ] +[[package]] +name = "term_size" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9" +dependencies = [ + "libc", + "winapi 0.3.8", +] + [[package]] name = "termcolor" version = "1.1.0" @@ -1916,6 +1927,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" dependencies = [ + "term_size", "unicode-width", ] diff --git a/Cargo.toml b/Cargo.toml index 1b9beda55..b943dbae6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ roaring = "0.6.1" slice-group-by = "0.2.6" smallstr = "0.2.0" smallvec = "1.4.0" -structopt = { version = "0.3.14", default-features = false } +structopt = { version = "0.3.14", default-features = false, features = ["wrap_help"] } tempfile = "3.1.0" # documents words self-join