Lines Matching refs:flag
106 for (const Flag& flag : flags_) {
107 if (flag.required) {
108 *out << " " << flag.name << " arg";
114 for (const Flag& flag : flags_) {
115 std::string argline = flag.name;
116 if (flag.num_args > 0) {
125 for (StringPiece line : util::Tokenize(flag.description, '\n')) {
151 for (Flag& flag : flags_) {
152 if (arg == flag.name) {
153 if (flag.num_args > 0) {
156 *out_error << flag.name << " missing argument.\n\n";
160 flag.action(args[i]);
162 flag.action({});
164 flag.parsed = true;
177 for (const Flag& flag : flags_) {
178 if (flag.required && !flag.parsed) {
179 *out_error << "missing required flag " << flag.name << "\n\n";