c4spar / deno-cliffy

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
https://cliffy.io
MIT License
929 stars 65 forks source link

Add option to configure help width #723

Open ShaneMurphy2 opened 2 months ago

ShaneMurphy2 commented 2 months ago

When viewing the help output on a vertical monitor, almost all the help text wraps pretty terribly. It would be nice to be able to configure newlines between the help text and things like enum options.

So instead of this:

  -o, --option     <option>  - Some option help.                           (required, Values: "foo
", "bar")

I'm thinking this:

  -o, --option     <option>  - Some option help. 
                               (required, Values: "foo", "bar")

It seems like this is a result of the output formatter assuming a fixed terminal width.