foriequal0 / git-trim

Automatically trims your branches whose tracking remote refs are merged or stray
MIT License
485 stars 14 forks source link

--help output is hard to read on narrow (<120 char) terminal windows #180

Open valrus opened 3 years ago

valrus commented 3 years ago

Check your version before submitting the bug

❯ git-trim --version
git-trim 0.4.2

Describe the bug git-trim --help output is hard to read on a terminal window less than 120 characters in width. This mostly concerns the "OPTIONS" section which seems to assume a terminal width of 120 characters.

To Reproduce

  1. Shrink terminal window to <120 characters, the smaller the worse
  2. git-trim --help

Expected behavior Help output should be readable at terminal widths down to 80 characters, which I believe is a more standard "minimum" terminal width than 120.

Actual behaviour --help output has line breaks that make it hard to read. Example, with width of 100 characters:

Screen Shot 2021-06-02 at 10 28 31 AM
foriequal0 commented 3 years ago

Hi valrus! Thank you for reporting this issue! As you can see in here, the help message relies on clap.rs, and there is ab open issue about this. I think there's nothing I can do for now.

valrus commented 3 years ago

Makes sense! Thanks for the response.

foriequal0 commented 3 years ago

I'll leave this issue open.