aboutsummaryrefslogtreecommitdiff
path: root/examples/example-clap-binding/Cargo.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-29 14:17:14 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-29 14:21:11 +0800
commitdccc86be272091f4f14be52951f8c02996318cd0 (patch)
tree6c99a113364e24482b9a03fbb7152aac83af83fd /examples/example-clap-binding/Cargo.toml
parente87fc1c89e4508fca6e7fd0ebafd3f17a0b95095 (diff)
Enable color feature for clap and fix help and error rendering
Diffstat (limited to 'examples/example-clap-binding/Cargo.toml')
-rw-r--r--examples/example-clap-binding/Cargo.toml8
1 files changed, 6 insertions, 2 deletions
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",
+]