21 vecPossibleValue.push_back(
"test");
22 vecPossibleValue.push_back(
"othervalue");
23 vecPossibleValue.push_back(
"lastpossibility");
39 int main(
int argc,
char** argv){
46 defaultMode.
getValue(selectedProject,
"project");
std::vector< PString > PVecString
int main(int argc, char **argv)
OptionParser createOptionParser()
Create the OptionParser of this program.
void printConstParser(const OptionParser &parser)
Do the same thing but with a const parser.
Describe a mode in the program arguments.
void print() const
Print the option of the mode.
bool getValue(T &value, const PString &optionName) const
Get the value of the option.
Parse the options passed to a program.
void parseArgument(int argc, char **argv)
Parse the arguments passed to the program.
void addOption(const PString &longOption, const PString &shortOption, OptionType::OptionType optionType, bool isRequired, const PString &docString)
Add an option in the OptionParser.
const OptionMode & getMode(const PString &name) const
Get mode by name.
void setExampleShortOption(const PString &example)
Set the example usage of the program.
void print() const
Print all the options.
void setExampleLongOption(const PString &example)
Set the example usage of the program.
const OptionMode & getDefaultMode() const
Get default mode.
#define phoenix_assert(isOk)
bool phoenix_check(const std::string &testName, const std::string &val, const std::string &reference)
Check two string.