These are chat archives for kbknapp/clap-rs

Apr 2018
Carson Page
Apr 14 2018 16:16
Hey all! I was attempting to find a way to make two flags mutally exclusive but at the same time required, meaning that if I had two flags A and B, one of them has to be set, but not both. I was attempting to use required_unless and conflicts_with but this seems to break down.
Does anyone know of a way to handle this situation?
Aleksey Kladov
Apr 14 2018 16:19
Carson Page
Apr 14 2018 16:20
@matklad Thanks! That looks like it. However, it looks like I might need to switch to clap proper instead of structopt. Thanks for the pointout!