• Home
  • Raw
  • Download

Lines Matching refs:flag

114 string DescribeOneFlag(const CommandLineFlagInfo& flag) {  in DescribeOneFlag()  argument
115 string main_part = (string(" -") + flag.name + in DescribeOneFlag()
116 " (" + flag.description + ')'); in DescribeOneFlag()
161 AddString(string("type: ") + flag.type, &final_string, &chars_in_line); in DescribeOneFlag()
173 if (strcmp(flag.type.c_str(), "string") == 0) { // add quotes for strings in DescribeOneFlag()
174 AddString(string("default: \"") + flag.current_value + string("\""), in DescribeOneFlag()
177 AddString(string("default: ") + flag.current_value, in DescribeOneFlag()
205 static string DescribeOneFlagInXML(const CommandLineFlagInfo& flag) { in DescribeOneFlagInXML() argument
210 AddXMLTag(&r, "file", flag.filename); in DescribeOneFlagInXML()
211 AddXMLTag(&r, "name", flag.name); in DescribeOneFlagInXML()
212 AddXMLTag(&r, "meaning", flag.description); in DescribeOneFlagInXML()
213 AddXMLTag(&r, "default", flag.default_value); in DescribeOneFlagInXML()
214 AddXMLTag(&r, "current", flag.current_value); in DescribeOneFlagInXML()
215 AddXMLTag(&r, "type", flag.type); in DescribeOneFlagInXML()
278 for (vector<CommandLineFlagInfo>::const_iterator flag = flags.begin(); in ShowUsageWithFlagsMatching() local
279 flag != flags.end(); in ShowUsageWithFlagsMatching()
280 ++flag) { in ShowUsageWithFlagsMatching()
282 FileMatchesSubstring(flag->filename, substrings)) { in ShowUsageWithFlagsMatching()
284 if (flag->description == kStrippedFlagHelp) continue; in ShowUsageWithFlagsMatching()
286 if (flag->filename != last_filename) { // new file in ShowUsageWithFlagsMatching()
287 if (Dirname(flag->filename) != Dirname(last_filename)) { // new dir! in ShowUsageWithFlagsMatching()
292 fprintf(stdout, "\n Flags from %s:\n", flag->filename.c_str()); in ShowUsageWithFlagsMatching()
293 last_filename = flag->filename; in ShowUsageWithFlagsMatching()
296 fprintf(stdout, "%s", DescribeOneFlag(*flag).c_str()); in ShowUsageWithFlagsMatching()
331 for (vector<CommandLineFlagInfo>::const_iterator flag = flags.begin(); in ShowXMLOfFlags() local
332 flag != flags.end(); in ShowXMLOfFlags()
333 ++flag) { in ShowXMLOfFlags()
334 if (flag->description != kStrippedFlagHelp) in ShowXMLOfFlags()
335 fprintf(stdout, "%s\n", DescribeOneFlagInXML(*flag).c_str()); in ShowXMLOfFlags()
409 for (vector<CommandLineFlagInfo>::const_iterator flag = flags.begin(); in HandleCommandLineHelpFlags() local
410 flag != flags.end(); in HandleCommandLineHelpFlags()
411 ++flag) { in HandleCommandLineHelpFlags()
412 if (!FileMatchesSubstring(flag->filename, substrings)) in HandleCommandLineHelpFlags()
414 const string package = Dirname(flag->filename) + "/"; in HandleCommandLineHelpFlags()