From 82bf30bfe65a7853920a59c48e5a900323f081a5 Mon Sep 17 00:00:00 2001 From: wh0 Date: Thu, 11 Mar 2021 00:22:35 -0800 Subject: [PATCH] passThroughOptions: correct error message --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ec9887905..985a8cfc8 100644 --- a/index.js +++ b/index.js @@ -1172,7 +1172,7 @@ class Command extends EventEmitter { passThroughOptions(passThrough = true) { this._passThroughOptions = !!passThrough; if (!!this.parent && passThrough && !this.parent._enablePositionalOptions) { - throw new Error('passThroughOptions can not be used without turning on enablePositionOptions for parent command(s)'); + throw new Error('passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)'); } return this; };