Lines Matching refs:option
103 std::string option(&(arg[0]), 2); in checkArgument() local
104 rArgs.push_back(option); in checkArgument()
199 bool Options::setOption(char const * option, std::string const & rArg) in setOption() argument
201 bool result = (0 == strcmp(option, rArg.c_str())); in setOption()
246 std::string const option(*first); in initOptions() local
253 return badOption("invalid", option); in initOptions()
263 return badOption("invalid", option); in initOptions()
301 return badOption("invalid", option); in initOptions()
315 if (!setOption("-C", option)) in initOptions()
317 return badOption("invalid", option); in initOptions()
323 if (!setOption("-cid", option)) in initOptions()
325 return badOption("invalid", option); in initOptions()
331 if (!setOption("-quiet", option)) in initOptions()
333 return badOption("invalid", option); in initOptions()
340 if (!setOption("-verbose", option)) in initOptions()
342 return badOption("invalid", option); in initOptions()
349 if (!(setOption("-w", option) || setOption("-we", option))) in initOptions()
351 return badOption("invalid", option); in initOptions()
358 if (!(setOption("-h", option) || setOption("-?", option))) in initOptions()
360 return badOption("invalid", option); in initOptions()
370 if (!setOption("-stdin", option)) in initOptions()
372 return badOption("invalid", option); in initOptions()
378 return badOption("unknown", option); in initOptions()
425 bool Options::isValid(const OString& option) in isValid() argument
427 return (m_options.count(option) > 0); in isValid()
430 const OString& Options::getOption(const OString& option) in getOption() argument
433 if (!isValid(option)) in getOption()
437 return m_options[option]; in getOption()