From 496216228473004a679e7916e0cf981565eddb56 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sat, 18 Apr 2020 17:55:09 +1200 Subject: [PATCH] Allow helpOption to only include long flag --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 2ae841538..a511a5803 100644 --- a/index.js +++ b/index.js @@ -1518,6 +1518,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();