search for: notvalidforoption1

Displaying 5 results from an estimated 5 matches for "notvalidforoption1".

2013 May 08
0
[LLVMdev] CommandLine: using cl::Positional with enum
...;option1> > > So why not make every argument optional (i.e. no positional arguments) > > then after calling ParseCommandLineOptions you can check the user has > used the right options by doing something like... > > // Note cl::opt<T> is a type of Option > Option* NOTValidForOption1[] = { &arg1, &arg2}; > Option* NOTValidForOption3[] = { &arg2 }; > > switch(YourOption) > { > case Option1: > for(int I=0; I < sizeof(NOTValidForOption1)/sizeof(Option*);++I) > { > if(NotValidForOption1[I]->getNumOccurrences() != 0) > { > //Fail >...
2013 May 10
0
[LLVMdev] CommandLine: using cl::Positional with enum
...;option1> > > So why not make every argument optional (i.e. no positional arguments) > > then after calling ParseCommandLineOptions you can check the user has > used the right options by doing something like... > > // Note cl::opt<T> is a type of Option > Option* NOTValidForOption1[] = { &arg1, &arg2}; > Option* NOTValidForOption3[] = { &arg2 }; > > switch(YourOption) > { > case Option1: > for(int I=0; I < sizeof(NOTValidForOption1)/sizeof(Option*);++I) > { > if(NotValidForOption1[I]->getNumOccurrences() != 0) > { > //Fail >...
2013 May 12
0
[LLVMdev] CommandLine: using cl::Positional with enum
...<option1> > > So why not make every argument optional (i.e. no positional arguments) > > then after calling ParseCommandLineOptions you can check the user has > used the right options by doing something like... > > // Note cl::opt<T> is a type of Option > Option* NOTValidForOption1[] = { &arg1, &arg2}; > Option* NOTValidForOption3[] = { &arg2 }; > > switch(YourOption) > { > case Option1: > for(int I=0; I < sizeof(NOTValidForOption1)/sizeof(Option*);++I) > { > if(NotValidForOption1[I]->getNumOccurrences() != 0) > { > //Fail >...
2013 May 07
1
[LLVMdev] CommandLine: using cl::Positional with enum
Hi,I've been trying to code through CommandLine the options I want my tool accepts, but I find quite impossible to achieve robustly what I need .Look, I want the tool accepts a list of arguments in a particular order. For this goal, I know the cl::Positional flag. But, the problem is that the first argument must be one of a set of options (like a kind of subcommand of the tool). In my case,
2013 May 14
0
[LLVMdev] CommandLine: using cl::Positional with enum
...So why not make every argument optional (i.e. no positional arguments) >> >> then after calling ParseCommandLineOptions you can check the user has >> used the right options by doing something like... >> >> // Note cl::opt<T> is a type of Option >> Option* NOTValidForOption1[] = { &arg1, &arg2}; >> Option* NOTValidForOption3[] = { &arg2 }; >> >> switch(YourOption) >> { >> case Option1: >> for(int I=0; I < sizeof(NOTValidForOption1)/sizeof(Option*);++I) >> { >> if(NotValidForOption1[I]->getNumOccurrences...