diff --git a/Cargo.lock b/Cargo.lock index f94b7f1..b9864cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -150,10 +150,11 @@ dependencies = [ [[package]] name = "cargo-options" -version = "0.6.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b8e8daa6b2b84aa7cccd57317d9a9b36d969d75bb95923471f4eabbd36f2955" +checksum = "48e06313830a277c39d563be61cea4e008e32a810984e79ee5e46d9cae544018" dependencies = [ + "anstyle", "clap", ] diff --git a/Cargo.toml b/Cargo.toml index f5c6cb2..1585406 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,8 +17,8 @@ pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }.{ targe [dependencies] anyhow = "1.0.53" cargo-config2 = "0.1.4" -cargo-options = "0.6.0" -clap = { version = "4.0.0", features = ["derive", "env", "wrap_help"] } +cargo-options = "0.7.1" +clap = { version = "4.3.0", features = ["derive", "env", "wrap_help", "unstable-styles"] } dirs = "5.0.0" fs-err = "2.7.0" indicatif = "0.17.2" diff --git a/src/bin/cargo-xwin.rs b/src/bin/cargo-xwin.rs index 903c84b..c38c100 100644 --- a/src/bin/cargo-xwin.rs +++ b/src/bin/cargo-xwin.rs @@ -6,7 +6,11 @@ use cargo_xwin::{Build, Check, Clippy, Run, Rustc, Test}; use clap::{Parser, Subcommand}; #[derive(Debug, Parser)] -#[command(version, name = "cargo-xwin")] +#[command( + version, + name = "cargo-xwin", + styles = cargo_options::styles(), +)] pub enum Cli { #[command(subcommand, name = "xwin")] Opt(Opt),