File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ function parse (args, opts) {
46
46
counts : { } ,
47
47
normalize : { } ,
48
48
configs : { } ,
49
- defaulted : { } ,
50
49
nargs : { } ,
51
50
coercions : { } ,
52
51
keys : [ ]
@@ -550,7 +549,7 @@ function parse (args, opts) {
550
549
} else {
551
550
// setting arguments via CLI takes precedence over
552
551
// values within the config file.
553
- if ( ! hasKey ( argv , fullKey . split ( '.' ) ) || ( flags . defaulted [ fullKey ] ) || ( flags . arrays [ fullKey ] && configuration [ 'combine-arrays' ] ) ) {
552
+ if ( ! hasKey ( argv , fullKey . split ( '.' ) ) || ( flags . arrays [ fullKey ] && configuration [ 'combine-arrays' ] ) ) {
554
553
setArg ( fullKey , value )
555
554
}
556
555
}
@@ -579,7 +578,7 @@ function parse (args, opts) {
579
578
return camelCase ( key )
580
579
} )
581
580
582
- if ( ( ( configOnly && flags . configs [ keys . join ( '.' ) ] ) || ! configOnly ) && ( ! hasKey ( argv , keys ) || flags . defaulted [ keys . join ( '.' ) ] ) ) {
581
+ if ( ( ( configOnly && flags . configs [ keys . join ( '.' ) ] ) || ! configOnly ) && ! hasKey ( argv , keys ) ) {
583
582
setArg ( keys . join ( '.' ) , process . env [ envVar ] )
584
583
}
585
584
}
You can’t perform that action at this time.
0 commit comments