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
Lloyd Brookes edited this page Jan 14, 2018
·
2 revisions
By default, commandLineArgs will throw an exception if the user set an unexpected option or value. This is often what we need, although there are times when need to be permissive, for example when collecting args we intend to pass to a different application. To achieve this we use partial parsing mode.
Example script
In this example, we define a --value option and enable partial parsing (set partial: true in the commandLineArgs options). Save the script as example.js.