Commits

Mathias Panzenböck committed 2f0f4a2

detect already existing default value for flag targets

  • Participants
  • Parent commits 751f0bd

Comments (0)

Files changed (1)

 				optdef.argc  = -1;
 	
 				if (optdef.default === undefined) {
-					optdef.default = false;
+					optdef.default = this.defaultValues[name];
+
+					if (optdef.default === undefined) {
+						optdef.default = false;
+					}
 				}
 				break;