Lines Matching refs:arg
31 int cmd_is_option(const char *arg, const char *option, int with_value) in cmd_is_option() argument
36 if (arg[of] == '-') { in cmd_is_option()
39 if (arg[of] == '-') { 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()
53 if ((arg[of] == ':') || (arg[of] == '=')) { in cmd_is_option()
59 if (arg[of] != *option) { in cmd_is_option()
66 if (arg[of] == 0) { /* we need a value to follow */ in cmd_is_option()
70 arg); in cmd_is_option()
82 int cmd_is_help_option(const char *arg) in cmd_is_help_option() argument
84 if (arg[0] == '-') { in cmd_is_help_option()
85 arg++; in cmd_is_help_option()
87 if (arg[0] == '-') { in cmd_is_help_option()
88 arg++; in cmd_is_help_option()
90 if ((strcasecmp(arg, "?") == 0) || in cmd_is_help_option()
91 (strcasecmp(arg, "h") == 0) || in cmd_is_help_option()
92 (strcasecmp(arg, "help") == 0)) { in cmd_is_help_option()