vilicvane / clime

⌨ The command-line interface framework for TypeScript.
252 stars 10 forks source link

required options with default value #36

Open xujif opened 7 years ago

xujif commented 7 years ago

If there is an default value the required shoud not throw an error.

vilicvane commented 7 years ago

@xujif sorry I think I misunderstood your point. Do you mean a param/option with default and is required should not throw an error? If so, why not remove the required property and make it optional as it already has a default value?

xujif commented 7 years ago

because I wanto set the defaul value with process.env