Searched refs:optionName (Results 1 – 2 of 2) sorted by relevance
53 const std::string &optionName = option.first; in printUsage() local55 printf(" [-%s", optionName.c_str()); in printUsage()74 const std::string &optionName = option.first; in printUsage() local76 printf(" -%s", optionName.c_str()); in printUsage()101 const std::string &optionName = entry.first; in parseArguments() local105 options[optionName] = optionSpec.getDefaultValue(); in parseArguments()114 const std::string optionName = arg.substr(1); in parseArguments() local115 const auto it = mOptionSpecs.find(optionName); in parseArguments()118 fprintf(stderr, "Unknown option: '%s'\n", optionName.c_str()); in parseArguments()127 fprintf(stderr, "Missing argument for option '%s'\n", optionName.c_str()); in parseArguments()[all …]
41 bool hasOption(const std::string &optionName) const { in hasOption() argument42 return mOptions.find(optionName) != mOptions.end(); in hasOption()45 const std::string &getOptionValue(const std::string &optionName) const { in getOptionValue() argument46 const auto &it = mOptions.find(optionName); in getOptionValue()