Lines Matching refs:Option
42 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, false}); in OptionalFlag()
51 options_.push_back(Option{name, description, func, Option::COUNT_EXACTLY_ONCE, true}); in MandatoryOption()
60 options_.push_back(Option{name, description, func, Option::COUNT_ONCE_OR_MORE, true}); in MandatoryOption()
69 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, true}); in OptionalOption()
78 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL_ONCE_OR_MORE, true}); in OptionalOption()
83 const auto pivot = std::partition(options_.begin(), options_.end(), [](const Option& opt) { in Parse()
84 return opt.count != Option::COUNT_OPTIONAL && opt.count != Option::COUNT_OPTIONAL_ONCE_OR_MORE; in Parse()
88 [](const Option& opt) -> std::string { return opt.name; }); in Parse()
99 for (const Option& opt : options_) { in Parse()
143 for (const Option& opt : options_) { in Usage()
145 opt.count != Option::COUNT_OPTIONAL && opt.count != Option::COUNT_OPTIONAL_ONCE_OR_MORE; in Usage()
158 if (opt.count == Option::COUNT_OPTIONAL_ONCE_OR_MORE) { in Usage()
166 if (opt.count == Option::COUNT_ONCE_OR_MORE) { in Usage()
171 for (const Option& opt : options_) { in Usage()
179 if (opt.count == Option::COUNT_ONCE_OR_MORE || in Usage()
180 opt.count == Option::COUNT_OPTIONAL_ONCE_OR_MORE) { in Usage()