-
Notifications
You must be signed in to change notification settings - Fork 152
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
Apply color settings recursively? #223
Comments
Sorry no, a bit related to #172 |
@dpc Well, in use structopt::clap::AppSettings::*;
#[structopt(setting(ColorAuto), setting(ColoredHelp))] which is a way shorter than it used to be. You're still going to have to copy-paste in on every subcommand, I don't think we can do much about it in structopt. |
That's the thing - copy-pasting it over 100 subcommands I have is not awesome. I don't even understand why would anyone want colors in some subcommands but not the others. :D |
That's inherited from clap: you have to do that with clap. This issue is open to discuse a solution and someone can then simplement it. PR welcome. |
@dpc will
or
|
I will try that! |
@CreepySkeleton I don't thin 0.3 is release yet, BTW, but 0.2 version works like a charm. |
@dpc Yeah, 0.3 is upcoming, I hope we'll manage to release it by the end of month, it'll make a lot of things easier. Just so you know: P.S I wonder what a program with over a hundred subcommands could possibly be? |
I exaggerated, but in |
It seems I have to copy&paste it before every single sub-command to get colored help everywhere as per "NOTE: When these settings are used, they apply only to current command, and are not propagated down or up through child or parent subcommands" https://docs.rs/structopt/0.2.18/structopt/clap/enum.ArgSettings.html
Is there any shortcut?
The text was updated successfully, but these errors were encountered: