Skip to content

Commit

Permalink
merge PR191
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jul 25, 2019
1 parent c5a1db0 commit d27b9ce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.js
Expand Up @@ -130,6 +130,17 @@ function parse (args, opts) {
})
})

// consistency checks for count flags
Object.keys(flags.counts).forEach(k => {
let toCheck = [].concat(k, flags.aliases[k] || [])
if (checkAllAliases(k, flags.arrays)) {
toCheck.forEach(a => delete flags.arrays[a])
}
if (checkAllAliases(k, flags.nargs)) {
toCheck.forEach(a => delete flags.nargs[a])
}
})

var argv = { _: [] }
var notFlags = []

Expand Down

0 comments on commit d27b9ce

Please sign in to comment.