Skip to content

Commit

Permalink
Updated argument parser library dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreybutler committed Feb 28, 2020
1 parent a30ce6e commit 466eccf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@author.io/shell",
"version": "1.1.2",
"version": "1.1.3",
"description": "A micro-framework for creating CLI-like experiences. This supports Node.js and browsers.",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -50,6 +50,6 @@
]
},
"dependencies": {
"@author.io/arg": "^1.2.3"
"@author.io/arg": "^1.2.4"
}
}
1 change: 1 addition & 0 deletions src/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ export default class Command {
let source = input.replace(STRIP_EQUAL_SIGNS, '').trim() + ' '
const flags = Array.from(FLAG_PATTERN[Symbol.matchAll](source), x => x[0])
const parser = new Parser(flags, flagConfig)

let recognized = parser.data

parser.unrecognizedFlags.forEach(arg => delete recognized[arg])
Expand Down

0 comments on commit 466eccf

Please sign in to comment.