Skip to content

Commit

Permalink
passThroughOptions: correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wh0 authored and abetomo committed Mar 11, 2021
1 parent d3a9e7a commit 82bf30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 82bf30b

Please sign in to comment.