diff --git a/lib/command.js b/lib/command.js index d190512ed..65559112a 100644 --- a/lib/command.js +++ b/lib/command.js @@ -749,7 +749,7 @@ Expecting one of '${allowedValues.join("', '")}'`); _checkForBrokenPassThrough(command, parent) { if (parent && command._passThroughOptions && !parent._enablePositionalOptions) { - throw new Error(`passThroughOptions cannot be used for '${command._name}' without turning on enablePositionalOptions for parent command${parent._name ? ` '${parent._name}'` : ''}`); + throw new Error(`passThroughOptions cannot be used for '${command._name}' without turning on enablePositionalOptions for parent command(s)`); } }