Skip to content

Commit

Permalink
fix: implement @antoniom's fix for camel-case expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin committed Dec 20, 2017
1 parent 9f2b662 commit 3087e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,10 +635,10 @@ function parse (args, opts) {
flags.aliases[key].concat(key).forEach(function (x) {
if (/-/.test(x) && configuration['camel-case-expansion']) {
var c = camelCase(x)
if (flags.aliases[key].indexOf(c) === -1) {
if (c !== key && flags.aliases[key].indexOf(c) === -1) {
flags.aliases[key].push(c)
newAliases[c] = true
}
newAliases[c] = true
}
})
flags.aliases[key].forEach(function (x) {
Expand Down

0 comments on commit 3087e1d

Please sign in to comment.