Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable_colored_help doesn't work #4674

Closed
danteissaias opened this issue Jan 25, 2023 · 3 comments
Closed

disable_colored_help doesn't work #4674

danteissaias opened this issue Jan 25, 2023 · 3 comments

Comments

@danteissaias
Copy link

Similar to #4671 but in error output

use clap::Parser;

#[derive(Parser, Debug)]
#[command(version, disable_help_subcommand = true, disable_colored_help = true)]
struct Cli {
    package: String,
}

fn main()  {
    let args = Cli::parse();
}

cargo run

image

Discussed in #4672

@epage
Copy link
Member

epage commented Jan 25, 2023

This is working as intended. disable_colored_help is specifically for help. If you want to disable colors generally, then you want color = clap::ColorChoice::Never.

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2023
@danteissaias
Copy link
Author

Is there a way to disable the underline/bold styles of usage without removing the error coloring?

@epage
Copy link
Member

epage commented Jan 25, 2023

#3234 will allow that which is my top priority when I finish with my current project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants