-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2845: fix(help)!: Consoldiate color settings r=pksunkara a=epage Co-authored-by: Ed Page <[email protected]>
- Loading branch information
Showing
7 changed files
with
15 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,7 +144,6 @@ use clap::{AppSettings, Parser}; | |
/// as do all doc strings on fields | ||
#[derive(Parser)] | ||
#[clap(version = "1.0", author = "Kevin K. <[email protected]>")] | ||
#[clap(setting = AppSettings::ColoredHelp)] | ||
struct Opts { | ||
/// Sets a custom config file. Could have been an Option<T> with no default too | ||
#[clap(short, long, default_value = "default.conf")] | ||
|
@@ -473,7 +472,7 @@ Disabling optional features can decrease the binary size of `clap` and decrease | |
* **std**: _Not Currently Used._ Placeholder for supporting `no_std` environments in a backwards compatible manner. | ||
* **derive**: Enables the custom derive (i.e. `#[derive(Parser)]`). Without this you must use one of the other methods of creating a `clap` CLI listed above. (builds dependency `clap_derive`) | ||
* **cargo**: Turns on macros that read values from `CARGO_*` environment variables. | ||
* **color**: Turns on colored error messages. You still have to turn on colored help by setting `AppSettings::ColoredHelp`. (builds dependency `termcolor`) | ||
* **color**: Turns on colored error messages. (builds dependency `termcolor`) | ||
* **env**: Turns on the usage of environment variables during parsing. | ||
* **suggestions**: Turns on the `Did you mean '--myoption'?` feature for when users make typos. (builds dependency `strsim`) | ||
* **unicode**: Turns on support for unicode characters in arguments and help messages. (builds dependency `textwrap`, `unicase`) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters