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
You are right. The documentation is out of date. The default behaviour in yargs-parser changed quite a while ago and the documentation in yargs has not been updated.
Problem
nargs options config does not consume values starting with
-
as documentedExpected Results
The docs describe nargs to work like this:
Actual Result
yargs 17.7.2 instead does not consume the
-my-token
and returns an error:The text was updated successfully, but these errors were encountered: