Home
last modified time | relevance | path

Searched refs:shortopts (Results 1 - 6 of 6) sorted by relevance

/third_party/python/Lib/
H A Dgetopt.py56 def getopt(args, shortopts, longopts = []):
61 running program. Typically, this means "sys.argv[1:]". shortopts
95 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
99 def gnu_getopt(args, shortopts, longopts = []):
122 if shortopts.startswith('+'):
123 shortopts = shortopts[1:]
138 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
192 def do_shorts(opts, optstring, shortopts, args):
195 if short_has_arg(opt, shortopts)
[all...]
/third_party/ninja/src/
H A Dgetopt.c146 getopt_internal (int argc, char **argv, char *shortopts, in getopt_internal() argument
162 if (argc == 0 || argv == NULL || (shortopts == NULL && longopts == NULL)) in getopt_internal()
176 if (shortopts != NULL && (*shortopts == '-' || *shortopts == '+')) in getopt_internal()
178 ordering = (*shortopts == '-') ? RETURN_IN_ORDER : REQUIRE_ORDER; in getopt_internal()
179 shortopts++; in getopt_internal()
283 if (longopt_match < 0 && shortopts != NULL) in getopt_internal()
285 cp = strchr (shortopts, argv[optind][optwhere]); in getopt_internal()
288 /* couldn't find option in shortopts */ in getopt_internal()
397 getopt_long(int argc, char **argv, const char *shortopts, const GETOPT_LONG_OPTION_T * longopts, int *longind) getopt_long() argument
404 getopt_long_only(int argc, char **argv, const char *shortopts, const GETOPT_LONG_OPTION_T * longopts, int *longind) getopt_long_only() argument
[all...]
H A Dgetopt.h45 int getopt_long (int argc, char **argv, const char *shortopts,
47 int getopt_long_only (int argc, char **argv, const char *shortopts,
/third_party/python/Lib/test/
H A Dtest_getopt.py174 longopts, shortopts = getopt.getopt(['--help='], '', ['help='])
176 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help='])
/third_party/mesa3d/src/freedreno/computerator/
H A Dmain.c98 static const char *shortopts = "df:g:hp:"; variable
212 while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != in main()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
H A Dir3_cmdline.c265 static const char *shortopts = "g:hv"; variable
298 while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != in main()

Completed in 4 milliseconds