Skip to content

Commit 3087e1d

Browse files
author
Benjamin
committed
fix: implement @antoniom's fix for camel-case expansion
1 parent 9f2b662 commit 3087e1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,10 +635,10 @@ function parse (args, opts) {
635635
flags.aliases[key].concat(key).forEach(function (x) {
636636
if (/-/.test(x) && configuration['camel-case-expansion']) {
637637
var c = camelCase(x)
638-
if (flags.aliases[key].indexOf(c) === -1) {
638+
if (c !== key && flags.aliases[key].indexOf(c) === -1) {
639639
flags.aliases[key].push(c)
640+
newAliases[c] = true
640641
}
641-
newAliases[c] = true
642642
}
643643
})
644644
flags.aliases[key].forEach(function (x) {

0 commit comments

Comments
 (0)