From 56221f775087d0fee96fa9b3efbc73aaacf7a737 Mon Sep 17 00:00:00 2001 From: John Gee Date: Tue, 21 Apr 2020 18:28:20 +1200 Subject: [PATCH] Allow helpOption to only include long flag (#1248) --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 44b5e2708..c36df5367 100644 --- a/index.js +++ b/index.js @@ -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();