v4.0.0
Breaking changes since v3.0.5
-
Removed support for node versions less than v4.0.0
-
The method signature changed. If you're passing a custom
argv
you now do it this way:const argv = [ '--log-level', 'info' ] commandLineArgs(optionDefinitions, { argv })
Previously, it was done this way:
const argv = [ '--log-level', 'info' ] commandLineArgs(optionDefinitions, argv)
-
String
is the new defaulttype
function.
If all the following are true then no changes are required to your code
- Your app does not need to run on old nodejs versions
- You don't pass a custom
argv
- All your option definitions have a
type
specified