dswisher / yaclops

Yet another command-line options parser
MIT License
2 stars 1 forks source link

Do not require reference to System.ComponentModel.DataAnnotations #13

Open dswisher opened 8 years ago

dswisher commented 8 years ago

To mark a positional parameter as required, the [Required] attribute from System.ComponentModel.DataAnnotations is used. In a new project, this is not included by default. To reduce dependencies, consider adding a [Required] attribute to Yaclops.Attributes.

cj525 commented 8 years ago

+1

dswisher commented 8 years ago

In thinking about this a little more, I'm wondering if it would be better to use a new attribute, perhaps [Mandatory], to avoid conflicts.

cj525 commented 8 years ago

Agreed. Another reason is that any external/reused attributes effectively hides the functionality from developer discovery via intellisense.