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

Shorten long default/accepts strings with ellipses in the short usage output #6

Open
hepcat72 opened this issue Mar 24, 2017 · 0 comments

Comments

@hepcat72
Copy link
Owner

I should not allow the default and accepts strings to be longer than 1 line in the short version of the usage output. Preferably, I would:

  1. Allow as much as will fit until the line wrap
  2. Remove whole values to replace with an ellipsis (e.g. "value, ...}"), but if the first value is longer than the number of characters left, hard-cut the string like this "really-long-v...}"
  3. If an accepts string is present and the combo of default and accepts strings is longer than 1 line and the default string is longer than half the line, shorten it in the same way as 2 above and then shorten the accepts string if the combo is still too long.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant