Skip to content
Myr

Allow helpOption to only include long flag (#1248)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by GitHub · parent 28e8d3f · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:index.js+1 added
1536 unmodified lines
1537 this._helpDescription = description || this._helpDescription;15381539 const splitFlags = this._helpFlags.split(/[ ,|]+/);15401541 this._helpShortFlag = undefined;1542 if (splitFlags.length > 1) this._helpShortFlag = splitFlags.shift();15431544 this._helpLongFlag = splitFlags.shift();1545
195 unmodified lines