diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-29 14:17:14 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-29 14:21:11 +0800 |
| commit | dccc86be272091f4f14be52951f8c02996318cd0 (patch) | |
| tree | 6c99a113364e24482b9a03fbb7152aac83af83fd /CHANGELOG.md | |
| parent | e87fc1c89e4508fca6e7fd0ebafd3f17a0b95095 (diff) | |
Enable color feature for clap and fix help and error rendering
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 36806ce..fd8f36a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,9 @@ ### Fixes: -None +1. **\[macros:dispatcher_clap\]** Fixed the issue where clap error messages (`DisplayHelp` and parse errors from `try_parse_from`) could not output ANSI + - For error paths, use `e.render().ansi()` instead of `e.to_string()` to prevent ANSI codes from being stripped by `strip_str` in `StyledStr::Display` + - For help info paths, use with `BasicProgramSetup`, output ANSI-colored help content through the mingling framework's `render_help` flow ### Optimizings: |
