Skip to content
Myr

passThroughOptions: correct error message

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by wh0 · committed by Tomoaki Abe · parent d3a9e7a · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:index.js+1 added-1 removed
1170 unmodified lines
1171 */1172 passThroughOptions(passThrough = true) {1173 this._passThroughOptions = !!passThrough;1174 if (!!this.parent && passThrough && !this.parent._enablePositionalOptions) {1175 throw new Error('passThroughOptions can not be used without turning on enablePositionOptions for parent command(s)');1175 throw new Error('passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)');1176 }1177 return this;1178 };1179
1038 unmodified lines