Skip to content

Commit

Permalink
Allow helpOption to only include long flag (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored Apr 21, 2020
1 parent 28e8d3f commit 56221f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,7 @@ class Command extends EventEmitter {

const splitFlags = this._helpFlags.split(/[ ,|]+/);

this._helpShortFlag = undefined;
if (splitFlags.length > 1) this._helpShortFlag = splitFlags.shift();

this._helpLongFlag = splitFlags.shift();
Expand Down

0 comments on commit 56221f7

Please sign in to comment.