search for: optionslevel

Displaying 6 results from an estimated 6 matches for "optionslevel".

2013 May 07
1
[LLVMdev] CommandLine: using cl::Positional with enum
...ble: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 argume...
2013 May 08
0
[LLVMdev] CommandLine: using cl::Positional with enum
...ption1 myTool option2 arg1 arg2 myTool option3 arg1 and I don't want a different order is possible, for instance, this is not permitted: myTool arg2 option2 arg1 So, 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 sele...
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 argume...
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 argume...
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 t...
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 s...