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

kubernetes: improve usage message #1511

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

bhcleek
Copy link
Contributor

@bhcleek bhcleek commented Mar 8, 2024

Ensure that the first backquoted string in kubernetes create flags is a string that should be used as the type in the usage message, because those backquotes cause pflag's usage parser to extract them and treat them as a flag name to try to determine the data type of the flag. The practical effect of this was that the help was borderline unreadable because the description was forced so far right and narrow.

Here's a screenshot of the effect of these changes:

image

Ensure that the first backquoted string in kubernetes create flags is a
string that should be used as the type in the usage message, because
those backquotes cause pflag's usage parser to extract them and treat
them as a flag name to try to determine the data type of the flag. The
practical effect of this was that the help was borderline unreadable
because the description was forced so far right and narrow.
Copy link
Member

@andrewsomething andrewsomething left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I like it!

@andrewsomething andrewsomething merged commit fd6f8b8 into digitalocean:main Mar 8, 2024
7 checks passed
@bhcleek bhcleek deleted the kubernetes-better-usage branch March 8, 2024 21:42
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

Successfully merging this pull request may close these issues.

None yet

3 participants