feat: add color and wrapping to help text (#2052)

* feat: add color to help text

Uses the same coloring that cargo uses to make it easier to skim read the help

* fix: wrap help text

* fix: shorten value placeholders in help text

* fix: docs for override help text
This commit is contained in:
Josh McKinney 2025-02-14 23:40:19 -08:00 committed by GitHub
parent 2c624c26f4
commit 95a9818565
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 53 additions and 14 deletions

12
Cargo.lock generated
View file

@ -578,6 +578,7 @@ dependencies = [
"binstalk",
"binstalk-manifests",
"clap",
"clap-cargo",
"compact_str",
"dirs",
"embed-resource",
@ -715,6 +716,16 @@ dependencies = [
"clap_derive",
]
[[package]]
name = "clap-cargo"
version = "0.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d546f0e84ff2bfa4da1ce9b54be42285767ba39c688572ca32412a09a73851e5"
dependencies = [
"anstyle",
"clap",
]
[[package]]
name = "clap_builder"
version = "4.5.29"
@ -725,6 +736,7 @@ dependencies = [
"anstyle",
"clap_lex",
"strsim",
"terminal_size",
]
[[package]]