feat: add colors to --help/-h (#1553)
This commit is contained in:
11
Cargo.lock
generated
11
Cargo.lock
generated
@@ -393,6 +393,16 @@ dependencies = [
|
|||||||
"clap_derive",
|
"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]]
|
[[package]]
|
||||||
name = "clap_builder"
|
name = "clap_builder"
|
||||||
version = "4.5.53"
|
version = "4.5.53"
|
||||||
@@ -2969,6 +2979,7 @@ dependencies = [
|
|||||||
"base64ct",
|
"base64ct",
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
|
"clap-cargo",
|
||||||
"clap_complete",
|
"clap_complete",
|
||||||
"clap_mangen",
|
"clap_mangen",
|
||||||
"color-eyre",
|
"color-eyre",
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ serde_json = "1.0.145"
|
|||||||
ignore = "=0.4.23"
|
ignore = "=0.4.23"
|
||||||
globset = "=0.4.16"
|
globset = "=0.4.16"
|
||||||
base64ct = "<1.8.0"
|
base64ct = "<1.8.0"
|
||||||
|
clap-cargo = "0.15.2"
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
mac-notification-sys = { git = "https://github.com/h4llow3En/mac-notification-sys" }
|
mac-notification-sys = { git = "https://github.com/h4llow3En/mac-notification-sys" }
|
||||||
|
|||||||
@@ -729,7 +729,7 @@ impl ConfigFile {
|
|||||||
// TODO: i18n of clap currently not easily possible. Waiting for https://github.com/clap-rs/clap/issues/380
|
// TODO: i18n of clap currently not easily possible. Waiting for https://github.com/clap-rs/clap/issues/380
|
||||||
// Tracking issue for i18n: https://github.com/topgrade-rs/topgrade/issues/859
|
// Tracking issue for i18n: https://github.com/topgrade-rs/topgrade/issues/859
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
#[command(name = "topgrade", version)]
|
#[command(name = "topgrade", version, styles = clap_cargo::style::CLAP_STYLING)]
|
||||||
pub struct CommandLineArgs {
|
pub struct CommandLineArgs {
|
||||||
/// Edit the configuration file
|
/// Edit the configuration file
|
||||||
#[arg(long = "edit-config")]
|
#[arg(long = "edit-config")]
|
||||||
|
|||||||
Reference in New Issue
Block a user