From dccc86be272091f4f14be52951f8c02996318cd0 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 29 May 2026 14:17:14 +0800 Subject: Enable color feature for clap and fix help and error rendering --- examples/example-clap-binding/Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'examples/example-clap-binding/Cargo.toml') diff --git a/examples/example-clap-binding/Cargo.toml b/examples/example-clap-binding/Cargo.toml index d261786..a019442 100644 --- a/examples/example-clap-binding/Cargo.toml +++ b/examples/example-clap-binding/Cargo.toml @@ -11,5 +11,9 @@ features = ["clap"] # Import `clap` to your project [dependencies.clap] version = "4.6.1" -# Enable `derive` features -features = ["derive"] +features = [ + # Enable `derive` feature to support `clap::Parser` + "derive", + # Enable `color` feature to support ANSI colors + "color", +] -- cgit