75lb / command-line-args

A mature, feature-complete library to parse command-line options.
MIT License
679 stars 107 forks source link

Support enumerated list #105

Closed brettz9 closed 4 years ago

brettz9 commented 4 years ago

I think it would be convenient to be able to define, within the option, an enumerated list of possible options.

Besides performing validation out-of-the-box, it could also be an option for command-line-usage documentation as well.

75lb commented 4 years ago

validation is left to the consuming application, there's an explanation here.