/external/python/cpython2/Lib/ |
D | getopt.py | 51 def getopt(args, shortopts, longopts = []): argument 90 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:]) 94 def gnu_getopt(args, shortopts, longopts = []): argument 117 if shortopts.startswith('+'): 118 shortopts = shortopts[1:] 133 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:]) 187 def do_shorts(opts, optstring, shortopts, args): argument 190 if short_has_arg(opt, shortopts): 202 def short_has_arg(opt, shortopts): argument 203 for i in range(len(shortopts)): [all …]
|
/external/python/cpython3/Lib/ |
D | getopt.py | 56 def getopt(args, shortopts, longopts = []): argument 95 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:]) 99 def gnu_getopt(args, shortopts, longopts = []): argument 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): argument 195 if short_has_arg(opt, shortopts): 207 def short_has_arg(opt, shortopts): argument 208 for i in range(len(shortopts)): [all …]
|
/external/perfetto/src/base/ |
D | getopt_compat.cc | 56 bool ParseOpts(const char* shortopts, in ParseOpts() argument 68 for (const char* sopt = shortopts; sopt && *sopt;) { in ParseOpts() 69 const size_t idx = static_cast<size_t>(sopt - shortopts); in ParseOpts() 95 const char* shortopts, in getopt_long() argument 107 if (!ParseOpts(shortopts, longopts, &opts)) in getopt_long() 217 int getopt(int argc, char** argv, const char* shortopts) { in getopt() argument 218 return getopt_long(argc, argv, shortopts, nullptr, nullptr); in getopt()
|
/external/flac/include/share/ |
D | getopt.h | 149 extern int share__getopt (int argc, char *const *argv, const char *shortopts); 155 extern int share__getopt_long (int argc, char *const *argv, const char *shortopts, 158 const char *shortopts, 163 const char *shortopts,
|
/external/e2fsprogs/include/nonunix/ |
D | getopt.h | 108 extern int getopt (int argc, char *const *argv, const char *shortopts); 112 extern int getopt_long (int argc, char *const *argv, const char *shortopts, 115 const char *shortopts, 120 const char *shortopts,
|
/external/libkmsxx/kms++util/src/ |
D | opts.cpp | 54 string shortopts = ":"; in parse() local 61 shortopts.push_back(o.m_short); in parse() 63 shortopts.push_back(':'); in parse() 65 shortopts.append("::"); in parse() 82 int c = getopt_long(argc, argv, shortopts.c_str(), in parse()
|
/external/arm-trusted-firmware/tools/fiptool/ |
D | win_posix.c | 245 const char *shortopts, in getopt_long() argument 267 shortopts, in getopt_long() 283 const char *shortopts, in getopt_long_only() argument 311 shortopts, in getopt_long_only()
|
D | win_posix.h | 172 const char *shortopts, 184 const char *shortopts,
|
/external/perfetto/include/perfetto/ext/base/ |
D | getopt_compat.h | 59 const char* shortopts, 63 int getopt(int argc, char** argv, const char* shortopts);
|
/external/python/cpython3/Lib/test/ |
D | test_getopt.py | 177 longopts, shortopts = getopt.getopt(['--help='], '', ['help=']) 179 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help='])
|
/external/python/cpython2/Lib/test/ |
D | test_getopt.py | 177 longopts, shortopts = getopt.getopt(['--help='], '', ['help=']) 179 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help='])
|
/external/python/cpython3/Doc/library/ |
D | getopt.rst | 30 .. function:: getopt(args, shortopts, longopts=[]) 34 means ``sys.argv[1:]``. *shortopts* is the string of option letters that the 48 are not supported. To accept only long options, *shortopts* should be an 66 .. function:: gnu_getopt(args, shortopts, longopts=[])
|
/external/mesa3d/src/freedreno/computerator/ |
D | main.c | 99 static const char *shortopts = "df:g:hp:"; variable 215 while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != -1) { in main()
|
/external/mesa3d/src/gallium/drivers/freedreno/ir3/ |
D | ir3_cmdline.c | 267 static const char *shortopts = "g:hv"; variable 299 while ((opt = getopt_long_only(argc, argv, shortopts, longopts, NULL)) != -1) { in main()
|
/external/python/cpython2/Lib/plat-mac/ |
D | bundlebuilder.py | 853 shortopts = "b:n:r:f:e:m:c:p:lx:i:hvqa" 863 options, args = getopt.getopt(sys.argv[1:], shortopts, longopts)
|