opencode
opencode copied to clipboard
fix(cli): prevent help text wrapping
Overview
The current opencode -h wraps unnecessarily in a few places ( opencode upgrade [target], opencode pr
This makes it harder to skim the text.
Proposed fix
Set .wrap(null) on yargs to prevent wrapping.
The potential drawback here is that the type/choices don't align neatly on the right, but personally I find it easier to read without that alignment.
An alternate solution is to just hardcode the number of cols to wrap on, eg here is .wrap(120)
This preserves the right alignment of types/choices but is more brittle.
I think I like wrap(100) better what do u think
+1, I like .wrap(100) - updated 👍