Skip to content

Commit

Permalink
Merge pull request #5617 from epage/color
Browse files Browse the repository at this point in the history
docs: Cross-link color control to Command::styles
  • Loading branch information
epage authored Aug 2, 2024
2 parents f3c4216 + 99f1fa6 commit 5f99b06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions clap_builder/src/builder/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,8 @@ impl Command {

/// Sets when to color output.
///
/// To customize how the output is styled, see [`Command::styles`].
///
/// **NOTE:** This choice is propagated to all child subcommands.
///
/// **NOTE:** Default behaviour is [`ColorChoice::Auto`].
Expand Down
3 changes: 2 additions & 1 deletion src/_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
//! #### Default Features
//!
//! * `std`: _Not Currently Used._ Placeholder for supporting `no_std` environments in a backwards compatible manner.
//! * `color`: Turns on colored error messages.
//! * `color`: Turns on terminal styling of help and error messages. See
//! [`Command::styles`][crate::Command::styles] to customize this.
//! * `help`: Auto-generate help output
//! * `usage`: Auto-generate usage
//! * `error-context`: Include contextual information for errors (which arg failed, etc)
Expand Down

0 comments on commit 5f99b06

Please sign in to comment.