From 9ba0d4439b5d9aeff8d2b130ac7159f11a9b3706 Mon Sep 17 00:00:00 2001 From: QiangHeisenberg Date: Fri, 21 Apr 2023 11:25:09 +0800 Subject: [PATCH] output use line wrap --- Cargo.lock | 11 +++++++++++ Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 78ba8e2faf8..e37a66212eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -476,6 +476,7 @@ dependencies = [ "bitflags", "clap_lex", "strsim", + "terminal_size", ] [[package]] @@ -3073,6 +3074,16 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "terminal_size" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e6bf6f19e9f8ed8d4048dc22981458ebcf406d67e94cd422e5ecd73d63b3237" +dependencies = [ + "rustix", + "windows-sys 0.48.0", +] + [[package]] name = "textwrap" version = "0.11.0" diff --git a/Cargo.toml b/Cargo.toml index 7ad57a16c9b..0959271a302 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,7 @@ base64 = "0.21.0" bytesize = "1.0" cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" } cargo-util = { path = "crates/cargo-util", version = "0.2.4" } -clap = "4.2.0" +clap = { version = "4.2.0", features = ["wrap_help"] } crates-io = { path = "crates/crates-io", version = "0.36.0" } curl = { version = "0.4.44", features = ["http2"] } curl-sys = "0.4.61"