Lines Matching refs:option
64 utils::auto_array< ::option > long_options;
81 data.long_options.reset(new ::option[options.size() + 1]); in options_to_getopt_data()
86 const cmdline::base_option* option = options[i]; in options_to_getopt_data() local
87 ::option& long_option = data.long_options[i]; in options_to_getopt_data()
89 long_option.name = option->long_name().c_str(); in options_to_getopt_data()
90 if (option->needs_arg()) in options_to_getopt_data()
96 if (option->has_short_name()) { in options_to_getopt_data()
97 data.short_options += option->short_name(); in options_to_getopt_data()
98 if (option->needs_arg()) in options_to_getopt_data()
100 id = option->short_name(); in options_to_getopt_data()
106 data.ids[id] = option; in options_to_getopt_data()
109 ::option& last_long_option = data.long_options[options.size()]; in options_to_getopt_data()
189 for (const ::option* opt = &data.long_options[0]; opt->name != NULL; in find_option_name()
322 const cmdline::base_option* option = *iter; in parse() local
323 if (option->needs_arg() && option->has_default_value()) in parse()
324 option_values[option->long_name()].push_back( in parse()
325 option->default_value()); in parse()
354 const cmdline::base_option* option = (*id).second; in parse() local
356 if (option->needs_arg()) { in parse()
358 option->validate(::optarg); in parse()
359 option_values[option->long_name()].push_back(::optarg); in parse()
361 INV(option->has_default_value()); in parse()
363 option_values[option->long_name()].push_back(""); in parse()