Skip to content

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

Description

@hepcat72

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions