Displaying 4 results from an estimated 4 matches for "optionsleve".
Did you mean:
optionslevel
2013 May 08
0
[LLVMdev] CommandLine: using cl::Positional with enum
...t;> myTool option1myTool option2 arg1 arg2 myTool option3 arg1and I don't want a different order is possible, for instance, this is not permitted:myTool arg2 option2 arg1So, I thought about using an enum for this first argument:enum OptLevel{option1, option2, option3};cl::opt<OptLevel> OptionsLevel(cl::Positional, cl::desc("Choose one of these options:"),cl::values(clEnumVal(option1, "..."),clEnumVal(option2, "..."),clEnumVal(option3, "..."), clEnumValEnd),);After that, the rest of arguments are also particular of the option selected as the first argum...
2013 May 10
0
[LLVMdev] CommandLine: using cl::Positional with enum
...t;> myTool option1myTool option2 arg1 arg2 myTool option3 arg1and I don't want a different order is possible, for instance, this is not permitted:myTool arg2 option2 arg1So, I thought about using an enum for this first argument:enum OptLevel{option1, option2, option3};cl::opt<OptLevel> OptionsLevel(cl::Positional, cl::desc("Choose one of these options:"),cl::values(clEnumVal(option1, "..."),clEnumVal(option2, "..."),clEnumVal(option3, "..."), clEnumValEnd),);After that, the rest of arguments are also particular of the option selected as the first argum...
2013 May 12
0
[LLVMdev] CommandLine: using cl::Positional with enum
...1myTool option2 arg1 arg2 myTool option3 arg1and I don't want a
> different order is possible, for instance, this is not permitted:myTool arg2
> option2 arg1So, I thought about using an enum for this first argument:enum
> OptLevel{option1, option2, option3};cl::opt<OptLevel>
> OptionsLevel(cl::Positional, cl::desc("Choose one of these
> options:"),cl::values(clEnumVal(option1, "..."),clEnumVal(option2,
> "..."),clEnumVal(option3, "..."), clEnumValEnd),);After that, the rest of
> arguments are also particular of the option selected as...
2013 May 14
0
[LLVMdev] CommandLine: using cl::Positional with enum
...arg1 arg2 myTool option3 arg1and I don't want a
>> different order is possible, for instance, this is not permitted:myTool arg2
>> option2 arg1So, I thought about using an enum for this first argument:enum
>> OptLevel{option1, option2, option3};cl::opt<OptLevel>
>> OptionsLevel(cl::Positional, cl::desc("Choose one of these
>> options:"),cl::values(clEnumVal(option1, "..."),clEnumVal(option2,
>> "..."),clEnumVal(option3, "..."), clEnumValEnd),);After that, the rest of
>> arguments are also particular of the option...