Skip to content

Best way to wrap description text by terminal width? #1785

Closed
@cobbzilla

Description

@cobbzilla

this is of minor priority

When I put in long lines in my description, they get chopped mid-word on "max 80-char width" displays; this looks bad, it's hard to read.

So I limit my description text to max 80 chars per line, but it's weird then to do -h and see the options take advantage of the much wider terminal, while the description is hard-coded to "max 80".

How can I display descriptions according to terminal width? Ideally I only put newlines where they make semantic sense, and let another layer handle the wrapping (on words, though, not chars).

I'm hoping there is already a way to do this that I haven't found, but I haven't found it :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions