-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Two things:
-
Implement
showHelpOnFail.layoutwith two options:'default', which is the current behavior (yargs::showHelp), and'single-column', which emulates typescript's help text layout (npx tsc --help). -
Implement
configureHelpTextLayouthook, which receivescontext(includingmetaandprogramsfor each command) and the help text that would have been output with respect toshowHelpOnFail.layout, and returns a string that will be output to the terminal as the help text.
TypeScript's (tsc) single-column help text looks really nice, and makes optimal use of the available terminal width. Eventually, I'd like to use it for my own CLI projects.
Time horizon is unbounded on this one, though.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request