jwaldrip / admiral.cr

A robust DSL for writing command line interfaces written in Crystal.
https://jwaldrip.github.com/admiral.cr
MIT License
135 stars 14 forks source link

feat: Verify enumerable flags have contents when required #22

Closed silasb closed 4 years ago

silasb commented 4 years ago

Currently enumerable flags could be empty (think Array(String)) and still pass through the validation phase when required: true is set.

Don't know my way around macros, which is why I've added a new kind field to the SPEC structure.