'Prevent yargs describe feature from showing auto-generated tags
When using yargs .describe method to generate usage information, is there some way to prevent yargs from auto-adding information about type, default value, choices etc.?
I.e. the following
.option('foo', {
type: 'string',
choices: ['bar','baz'],
required: true,
default: 'bar',
description: 'The most important option of all'
})
results in this output when doing --help:
--foo The most important option of all [string] [required] [choices: "bar", "baz"] [default: "bar"]
I find that to be ugly, out of line with how help texts are generally formatted in linux, and confusing to read. Also, on longer description texts that include line breaks, it breaks formatting.
I haven't found anything in the docs. Anyone know of a way to do this, without having to completely give up yargs' describe feature?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
