fix boolean defaults
This commit is contained in:
		| @@ -28,10 +28,12 @@ export class ArgSource extends OptionSource { | ||||
|       } | ||||
|     }; | ||||
|     for (const opt of options) { | ||||
|       const type = opt.type_validation.persistent_type; | ||||
|       yargs_config[opt.name] = { | ||||
|         alias:    opt.alias, | ||||
|         default:  opt.default, | ||||
|         type:     opt.type_validation.persistent_type, | ||||
|         // eslint-disable-next-line no-undefined | ||||
|         default:  type === 'boolean' ? undefined : opt.default, | ||||
|         type, | ||||
|         describe: opt.description | ||||
|       }; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user