Home
last modified time | relevance | path

Searched refs:shortopts (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython2/Lib/
Dgetopt.py51 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/
Dgetopt.py56 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/
Dgetopt_compat.cc56 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/
Dgetopt.h149 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/
Dgetopt.h108 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/
Dopts.cpp54 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/
Dwin_posix.c245 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()
Dwin_posix.h172 const char *shortopts,
184 const char *shortopts,
/external/perfetto/include/perfetto/ext/base/
Dgetopt_compat.h59 const char* shortopts,
63 int getopt(int argc, char** argv, const char* shortopts);
/external/python/cpython3/Lib/test/
Dtest_getopt.py177 longopts, shortopts = getopt.getopt(['--help='], '', ['help='])
179 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help='])
/external/python/cpython2/Lib/test/
Dtest_getopt.py177 longopts, shortopts = getopt.getopt(['--help='], '', ['help='])
179 longopts, shortopts = getopt.getopt(['--help=x'], '', ['help='])
/external/python/cpython3/Doc/library/
Dgetopt.rst30 .. 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/
Dmain.c99 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/
Dir3_cmdline.c267 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/
Dbundlebuilder.py853 shortopts = "b:n:r:f:e:m:c:p:lx:i:hvqa"
863 options, args = getopt.getopt(sys.argv[1:], shortopts, longopts)