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

A way to say "this or this" #5

Closed bararchy closed 4 years ago

bararchy commented 6 years ago

So, I want one of two flags to be required, not both, not none, but this or the other

flag1
flag2

raise unless flag1 || flag2

This is what I use now, but it lacks "promise" that one will be required.

jwaldrip commented 6 years ago

@bararchy good suggestion, I will think about how to incorporate that into the DSL.

bararchy commented 6 years ago

Hi @jwaldrip any update? :)

jwaldrip commented 4 years ago

@bararchy checking in. No update on the DSL as of yet.