Lines Matching refs:option
31 int cmd_is_option(const char *arg, const char *option, int with_value) in cmd_is_option() argument
34 size_t to_match_len = strlen(option); in cmd_is_option()
44 if (strcmp(&arg[of], option) != 0) { in cmd_is_option()
51 while (!(arg[of] == 0 && *option == 0)) { in cmd_is_option()
52 if (*option == 0) { in cmd_is_option()
59 if (arg[of] != *option) { in cmd_is_option()
63 option++; in cmd_is_option()
121 const char *option) in cmd_read_option_value() argument
176 option, str); in cmd_read_option_value()
187 while (args_struct[count].option != NULL) { in cmd_args_set_defaults()
250 ret = snprintf(buf, size, "-%s", args_s_el->option); in cmd_gen_switch_syntax()
254 args_s_el->option, args_s_el->name); in cmd_gen_switch_syntax()
257 args_s_el->option, args_s_el->name); in cmd_gen_switch_syntax()
292 while (args_struct[count].option != NULL) { in cmd_print_switches_help()
326 while (args_struct[count].option != NULL) { in cmd_print_long_help()
378 arg_element->option); in cmd_handle_this_matched_arg()
402 while (args_struct[count].option != NULL) { in cmd_parse_one_arg()
407 ret = cmd_is_option(argv, args_struct[count].option, in cmd_parse_one_arg()