Skip to content

Commit

Permalink
Return case sensitive unrecognized flags
Browse files Browse the repository at this point in the history
  • Loading branch information
coreybutler committed May 5, 2020
1 parent ac0eb73 commit 44b3291
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,10 @@ class Parser {
this.#flags.forEach((flag, flagname) => {
if (!this.#aliases.has(flagname)) {
if (!flag.recognized) {
result.add(flagname)
result.add(flag.name)
}
}
})

return Array.from(result)
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@author.io/arg",
"version": "1.3.2",
"version": "1.3.3",
"description": "An argument parser for CLI applications.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 44b3291

Please sign in to comment.