Home
last modified time | relevance | path

Searched refs:has_arg (Results 1 - 25 of 39) sorted by relevance

12

/third_party/python/Lib/test/
H A Dtest_getopt.py27 has_arg, option = getopt.long_has_args('abc', ['abc='])
28 self.assertTrue(has_arg)
31 has_arg, option = getopt.long_has_args('abc', ['abc'])
32 self.assertFalse(has_arg)
35 has_arg, option = getopt.long_has_args('abc', ['abcd'])
36 self.assertFalse(has_arg)
/third_party/alsa-utils/alsamixer/
H A Dcli.c66 { .name = "card", .has_arg = 1, .val = 'c' }, in parse_options()
67 { .name = "config", .has_arg = 1, .val = 'f' }, in parse_options()
69 { .name = "device", .has_arg = 1, .val = 'D' }, in parse_options()
72 { .name = "view", .has_arg = 1, .val = 'V' }, in parse_options()
75 { .name = "abstraction", .has_arg = 1, .val = 'a' }, in parse_options()
/third_party/python/Lib/
H A Dgetopt.py157 has_arg, opt = long_has_args(opt, longopts)
158 if has_arg:
169 # has_arg?
187 has_arg = unique_match.endswith('=')
188 if has_arg:
190 return has_arg, unique_match
/third_party/ninja/src/
H A Dgetopt.c157 int has_arg = -1; in getopt_internal() local
280 has_arg = longopts[longopt_match].has_arg; in getopt_internal()
301 has_arg = ((cp[1] == ':') in getopt_internal()
308 switch (has_arg) in getopt_internal()
H A Dgetopt.h17 int has_arg; /* one of the above macros */ member
/third_party/mesa3d/src/freedreno/decode/
H A Dcrashdec.c832 { .name = "allregs", .has_arg = 0, NULL, 'a' },
833 { .name = "color", .has_arg = 0, NULL, 'c' },
834 { .name = "file", .has_arg = 1, NULL, 'f' },
835 { .name = "help", .has_arg = 0, NULL, 'h' },
836 { .name = "markers", .has_arg = 0, NULL, 'm' },
837 { .name = "summary", .has_arg = 0, NULL, 's' },
838 { .name = "verbose", .has_arg = 0, NULL, 'v' },
/third_party/mesa3d/src/getopt/
H A Dgetopt_long.c208 if (long_options[match].has_arg == no_argument in parse_long_options()
222 if (long_options[match].has_arg == required_argument || in parse_long_options()
223 long_options[match].has_arg == optional_argument) { in parse_long_options()
226 else if (long_options[match].has_arg == in parse_long_options()
234 if ((long_options[match].has_arg == required_argument) in parse_long_options()
H A Dgetopt.h54 int has_arg; member
/third_party/libwebsockets/win32port/win32helpers/
H A Dgetopt_long.c206 if (long_options[match].has_arg == required_argument ||
207 long_options[match].has_arg == optional_argument) {
213 if ((long_options[match].has_arg == required_argument)
H A Dgetopt.h17 int has_arg; member
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dgmemtool.c106 {.name = "gpu", .has_arg = 1, NULL, 'g'},
107 {.name = "help", .has_arg = 0, NULL, 'h'},
108 {.name = "verbose", .has_arg = 0, NULL, 'v'},
/third_party/backends/lib/
H A Dgetopt.c685 || pfound->has_arg != p->has_arg
727 /* Don't test has_arg with >, because some C compilers don't
729 if (pfound->has_arg)
787 else if (pfound->has_arg == 1)
1056 /* Don't test has_arg with >, because some C compilers don't
1058 if (pfound->has_arg)
1089 else if (pfound->has_arg == 1)
/third_party/glfw/deps/
H A Dgetopt.c201 if (match->has_arg != no_argument) { in getopt_long()
206 if (match->has_arg == required_argument) { in getopt_long()
H A Dgetopt.h43 int has_arg; member
/third_party/musl/src/misc/
H A Dgetopt_long.c94 if (!longopts[i].has_arg) { in __getopt_long_core()
105 } else if (longopts[i].has_arg == required_argument) { in __getopt_long_core()
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dgetopt.h14 int has_arg; member
/third_party/musl/porting/uniproton/kernel/include/
H A Dgetopt.h14 int has_arg; member
/third_party/musl/porting/liteos_m/kernel/include/
H A Dgetopt.h14 int has_arg; member
/third_party/musl/include/
H A Dgetopt.h14 int has_arg; member
/third_party/python/Include/internal/
H A Dpycore_getopt.h16 int has_arg; member
/third_party/backends/include/
H A Dlgetopt.h83 The field `has_arg' is:
106 /* has_arg can't be an enum because some compilers complain about
108 int has_arg; member
113 /* Names for the values of the `has_arg' field of `struct option'. */
/third_party/mesa3d/src/compiler/glsl/
H A Dmain.cpp68 if (o->has_arg == required_argument) in usage_fail()
/third_party/toybox/toys/pending/
H A Dgetopt.c50 for (lopt->has_arg = 0; len>0 && str[len-1] == ':'; lopt->has_arg++) len--; in parse_long_opt()
51 if (!len || lopt->has_arg>2) return str; in parse_long_opt()
94 if (lopts[i].has_arg) out(optarg ? optarg : ""); in getopt_main()
/third_party/python/Python/
H A Dgetopt.c47 /* name, has_arg, val (used in switch in initconfig.c) */
126 if (!opt->has_arg) { in _PyOS_GetOpt()
/third_party/f2fs-tools/mkfs/
H A Df2fs_format_main.c183 { .name = "help", .has_arg = 0, .flag = NULL, .val = 'h' }, in f2fs_parse_options()
184 { .name = NULL, .has_arg = 0, .flag = NULL, .val = 0 } in f2fs_parse_options()

Completed in 12 milliseconds

12