@black-flag/extensions / index / withUsageExtensions
withUsageExtensions(
altDescription
,__namedParameters
):string
Defined in: packages/extensions/src/index.ts:1336
Generate command usage text consistently yet flexibly.
Defaults to: Usage: $000\n\n${altDescription}
where altDescription
is
$1.
string
= '$1.'
boolean
= true
Whether a period will be appended to the resultant string or not. A period is only appended if one is not already appended.
Default
true
boolean
= prependNewlines
Whether the string ' [...options]'
will be appended to the first line of usage text
Default
options.prependNewlines
boolean
= true
Whether newlines will be prepended to altDescription
or not.
Default
true
boolean
= true
Whether altDescription
will be trim()
'd or not.
Default
true
string