Lines Matching refs:flag
137 for (const Flag& flag : flags_) { in Usage() local
138 if (flag.is_required) { in Usage()
139 *out << " " << flag.name << " arg"; in Usage()
162 for (const Flag& flag : flags_) { in Usage() local
163 std::string argline = flag.name; in Usage()
164 if (flag.num_args > 0) { in Usage()
171 for (StringPiece line : util::Tokenize(flag.description, '\n')) { in Usage()
216 for (Flag& flag : flags_) { in Execute()
217 if (arg == flag.name) { in Execute()
218 if (flag.num_args > 0) { in Execute()
221 *out_error << flag.name << " missing argument.\n\n"; in Execute()
225 flag.action(args[i]); in Execute()
227 flag.action({}); in Execute()
229 flag.found = true; in Execute()
242 for (const Flag& flag : flags_) { in Execute() local
243 if (flag.is_required && !flag.found) { in Execute()
244 *out_error << "missing required flag " << flag.name << "\n\n"; in Execute()