You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
Similar to clap-rs/clap#2035, but instead of allowing usage of Clap's error formatting, allow the user to customize Clap's messages and style to fit his preferences.
The text was updated successfully, but these errors were encountered:
Issue by filipelbc
Saturday Oct 31, 2020 at 21:07 GMT
Originally opened as clap-rs/clap#2196
Before anything, this library is great! Thanks!
Make sure you completed the following tasks
Describe your use case
I prefer printing
ERROR: ...
instead oferror: ...
, and to make the background red, instead of the foreground.Describe the solution you'd like
Allow the user to set the
"error: "
string, which is currently hard-coded, see https://github.com/clap-rs/clap/blob/97b4fb639f846c5b910c318dd6c6f7d6da779d7d/src/parse/errors.rs#L401Allow the user to change the colors, currently hard-coded, see https://github.com/clap-rs/clap/blob/97b4fb639f846c5b910c318dd6c6f7d6da779d7d/src/output/fmt.rs#L53
You could create a
StyleSetting
struct and a mechanism similar toAppSettings
.Additional context
Similar to clap-rs/clap#2035, but instead of allowing usage of Clap's error formatting, allow the user to customize Clap's messages and style to fit his preferences.
The text was updated successfully, but these errors were encountered: