Lines Matching refs:opt_def

359 static bool PrintOption(const OptionDefinition &opt_def,  in PrintOption()  argument
362 if (display_type == eDisplayShortOption && !opt_def.HasShortOption()) in PrintOption()
368 if (show_optional && !opt_def.required) in PrintOption()
371 opt_def.HasShortOption() && display_type != eDisplayLongOption; in PrintOption()
373 strm.Printf("-%c", opt_def.short_option); in PrintOption()
375 strm.Printf("--%s", opt_def.long_option); in PrintOption()
376 switch (opt_def.option_has_arg) { in PrintOption()
380 strm.Printf(" <%s>", CommandObject::GetArgumentName(opt_def.argument_type)); in PrintOption()
385 CommandObject::GetArgumentName(opt_def.argument_type)); in PrintOption()
388 if (show_optional && !opt_def.required) in PrintOption()
522 OptionDefinition opt_def = opt_defs[pos.second]; in GenerateOptionUsage() local
525 if (opt_def.short_option && opt_def.HasShortOption()) { in GenerateOptionUsage()
526 PrintOption(opt_def, eDisplayShortOption, nullptr, nullptr, false, in GenerateOptionUsage()
528 PrintOption(opt_def, eDisplayLongOption, " ( ", " )", false, strm); in GenerateOptionUsage()
531 PrintOption(opt_def, eDisplayLongOption, nullptr, nullptr, false, strm); in GenerateOptionUsage()
537 if (opt_def.usage_text) in GenerateOptionUsage()
538 OutputFormattedUsageText(strm, opt_def, screen_width); in GenerateOptionUsage()
539 if (!opt_def.enum_values.empty()) { in GenerateOptionUsage()
543 for (const auto &enum_value : opt_def.enum_values) { in GenerateOptionUsage()
765 OptionDefinition opt_def = m_option_defs[i]; in GetGroupWithOption() local
766 if (opt_def.short_option == short_opt) in GetGroupWithOption()