You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Causes Not enough non-option arguments: got 0, need at least 1.
-- here is used to break populating array argument, otherwise command would be parsed as one of its values along with foo and bar and not as a command.
As a result it's not possible to put commands after array arguments at all, while other argument types can precede commands, this works fine for example:
node index.js --string foo command
The text was updated successfully, but these errors were encountered:
Yargs version: 15.0.0 and above, version 14.2.0 is not affected.
#1459 looks like it could have introduced this.
Setup:
Causes
Not enough non-option arguments: got 0, need at least 1
.--
here is used to break populatingarray
argument, otherwisecommand
would be parsed as one of its values along withfoo
andbar
and not as a command.As a result it's not possible to put commands after array arguments at all, while other argument types can precede commands, this works fine for example:
The text was updated successfully, but these errors were encountered: