Closed greenkeeper[bot] closed 6 years ago
Update to this version instead 🚀
The new version differs by 8 commits.
1b5f139
5.0.2
5e5eedd
added stopAtFirstUnknown test
087e88d
Fixed #78: camelCase now works on groups
11e9fc2
API doc example update
e771f97
readme
1a30e99
Merge pull request #77 from rafaeleyng/patch-1
98013b2
Update README.md
b6aac4d
update API docs
See the full diff
Version 5.0.0 of command-line-args was just published.
The version 5.0.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of command-line-args.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v5.0.0Breaking changes from v4.0.7
UNKNOWN_VALUE
) by default in the same way unknown options do. Command-line-args is now strict by default - all options and values must be accounted for in the option definitions.5
in the command--verbose 5
where verbose is defined as aBoolean
.partial
orstopAtFIrstUnknown
parse options.NAME_MISSING
,INVALID_TYPE
etc) thrown by commandLineArgs in the case of an invalid definition have been consolidated to just one error name:INVALID_DEFINITIONS
. Given broken option definitions are a programmer error they'd never be handled anyway, making the various names pointless.New documentation
Wiki introduced.
New parse features
UNKNOWN_OPTION
exception now has aoptionName
property containing the unknown option name, e.g.--one
UNKNOWN_VALUE
exception has avalue
property containing the unknown value, e.g.5
New option definition features
Bug fixes
Upgrade notes
No API changes were introduced in v5.0.0 - it is backward-compatible. If you're comfortable with the new version throwing exceptions on unknown values, you are safe to upgrade without code change.
Commits
The new version differs by 40 commits.
c3c597a
5.0.0
7076237
update links to docs
4da0aac
deps
5337f4c
Merge branch 'next'
767a964
readme
adc93f5
readme
19f69b9
5.0.0-alpha.2
64f2120
docs
7b8f7bf
refactor and extract argv-tools
ea310da
5.0.0-alpha.1
2d4b5cf
update API docs
f56f1d1
update API docs
c89164f
Throw ALREADY_SET if a singular option is set for a second time
b4c97ab
5.0.0-alpha.0
1270676
subArg property added to argInfo object.. tests cleaned up.
There are 40 commits in total.
See the full diff
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper bot :palm_tree: