Skip to content

Commit f51fc22

Browse files
authored
fix: respect default value for negated options if presents (#103)
1 parent 15e9f80 commit f51fc22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Option.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class Option {
4343
// Use the longest name (last one) as actual option name
4444
this.name = this.names[this.names.length - 1]
4545

46-
if (this.negated) {
46+
if (this.negated && this.config.default == null) {
4747
this.config.default = true
4848
}
4949

0 commit comments

Comments
 (0)