-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Better looking visible aliases for subcommands #1398
Comments
After having used Rust for a while now I think this is something I might be able to implement myself, are there any thoughts on how this should work? Should I create a |
Outright change is probably not a good idea. A setting sounds good but I am wondering if we are taking this too far. What if people want it in a different kind of way? |
Any suggestions for how you'd approach this in that case? |
I am honestly stumped regarding the design here. @kbknapp What do you think? |
I personally like this one more
|
I don't think we should be defaulting to that. But I too like it, which is why I am saying that we should come up with a way to allow users to format the help messages. |
The difference between the two versions is aesthetic only and not structural, so I'd prefer to have one way to display it and stick to that. I don't think it's worth the overhead to provide an option to switch between whichever way is the default and the other way. The same could be argued for options/flags, however the average The only aesthetic As for which version I prefer? I don't have super strong feelings about either. I could be convinced that the new way looks a little better. But it also suffers from the alignment issue described above. Since this change only affects subcommands, I'd be fine accepting it. My only other concern is then the request to do the same for flags/options would become a request which I would be more against for the alignment issues. Maybe it'd be worth a look through github and grep.app to see average length of subcommands/aliases because when combined with #1891 if we lowered the default term width to 100, I'd want to make sure we didn't end up with help messages like this (exaggerated just for example):
|
It is the main reason I prefer not to change the current way of showing aliases. But, we can allow a |
I think #962 could be useful which might come at odds with showing the aliases first. Thoughts on how these two might interact? |
Yes, I believe subcommands are currently rendered like args, with a trailing The big question is how much logic should be built-in and how much should we punt to people doing it themselves with #2914. I lean towards closing this in favor of #2914 but keeping #962 open. I'd like to try it out on some commands to see how well it works to give an idea for how universally useful it would be which could bump its prioritization for being built-in. One idea I had for #2963 was to experiment with making all parenthetical information dimmed, giving it a different visual than the |
Right now when you create a visible alias for a subcommand it appears in brackets after the help message, so when I first added some visible aliases I thought it didn't work. I like how Jekyll for example does it:
as opposed to Clap:
The text was updated successfully, but these errors were encountered: