git-trim icon indicating copy to clipboard operation
git-trim copied to clipboard

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

Open valrus opened this issue 3 years ago • 3 comments

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

valrus avatar Jun 02 '21 17:06 valrus

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.

foriequal0 avatar Jun 03 '21 01:06 foriequal0

Makes sense! Thanks for the response.

valrus avatar Jun 03 '21 01:06 valrus

I'll leave this issue open.

foriequal0 avatar Jun 03 '21 01:06 foriequal0