-
Notifications
You must be signed in to change notification settings - Fork 65
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
usage formatting #360
usage formatting #360
Conversation
There is a bug for flags that do not have a short cut, they print out as just a "-": -, --version -, --driver-logging-level |
Kubectl is doing a paragraph align of the descriptions, e.g.
Where as this PR is wrapping to col 1, e.g.
Can we align the description text as well please. |
Given the sheer number of flags, it would be nice to be able to put the flags into groups. It looks like Cobra doesn't support this yet, this PR would need to be merged: Is there any other easy way to provide flag grouping that you know of? |
Updated the usage formatting similar to kubectl: -X, --disable-cmd-and-warn |
Resolved this. |
Looks much better: -c, --batch-terminator -s, --column-separator There is an extra "--" at the beginning of each description... |
Also, while you here, can you fix:
So there are some spaces in the string to it can wrap correctly. |
Resolved |
Resolved |
This is looking much much better. Nit: can you bring the help description back to spaces, so it is the same as kubectl, e.g.: '''
|
@stuartpa
beacuse right now it looks like this :
I am liking lower one better as compared to first one. |
Like the lower one, but back two spaces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.