[llvm-dev] XOR CommandLine arguments
Sean Silva via llvm-dev
llvm-dev at lists.llvm.org
Mon Apr 4 12:02:26 PDT 2016
Could you do something like `-mode={if,od}` and make the option required?
-- Sean Silva
On Mon, Apr 4, 2016 at 11:54 AM, Daniel Dilts via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> With the CommandLine library, is there a way to specify that one of two
> options must be present?
>
> I have two parameters, -if and -od. I want an error if neither is present
> or if both are present.
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160404/2cb2b3be/attachment.html>
More information about the llvm-dev
mailing list