Default IsRequired
for options based on whether the required
modifier is used on the property
#132
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
C#11 added the
required
keyword for properties:We should default the value of the
IsRequired
property on theCommandOption
attribute totrue
(instead offalse
) if therequired
keyword is used.This keyword can be detected through reflection by looking for the
RequiredMember
attribute:The text was updated successfully, but these errors were encountered: