Home
last modified time | relevance | path

Searched refs:getopt (Results 1 – 25 of 519) sorted by relevance

12345678910>>...21

/third_party/python/Lib/test/
Dtest_getopt.py8 import getopt
23 self.assertRaises(getopt.GetoptError, *args, **kwargs)
26 self.assertTrue(getopt.short_has_arg('a', 'a:'))
27 self.assertFalse(getopt.short_has_arg('a', 'a'))
28 self.assertError(getopt.short_has_arg, 'a', 'b')
31 has_arg, option = getopt.long_has_args('abc', ['abc='])
35 has_arg, option = getopt.long_has_args('abc', ['abc'])
39 has_arg, option = getopt.long_has_args('abc', ['abcd'])
43 self.assertError(getopt.long_has_args, 'abc', ['def'])
44 self.assertError(getopt.long_has_args, 'abc', [])
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dgetopt.c31 int result = getopt(argc, argv, optstring); in getopt_0100()
48 int result = getopt(argc, argv, optstring); in getopt_0200()
64 int result = getopt(argc, argv, optstring); in getopt_0300()
81 int result = getopt(argc, argv, optstring); in getopt_0400()
97 int result = getopt(argc, argv, optstring); in getopt_0500()
113 int result = getopt(argc, argv, optstring); in getopt_0600()
129 int result = getopt(argc, argv, optstring); in getopt_0700()
145 int result = getopt(argc, argv, optstring); in getopt_0800()
/third_party/python/Doc/library/
Dgetopt.rst1 :mod:`getopt` --- C-style parser for command line options
4 .. module:: getopt
8 **Source code:** :source:`Lib/getopt.py`
12 The :mod:`getopt` module is a parser for command line options whose API is
13 designed to be familiar to users of the C :c:func:`getopt` function. Users who
14 are unfamiliar with the C :c:func:`getopt` function or who would like to write
21 It supports the same conventions as the Unix :c:func:`getopt` function (including
30 .. function:: getopt(args, shortopts, longopts=[])
36 colon (``':'``; i.e., the same format that Unix :c:func:`getopt` uses).
40 Unlike GNU :c:func:`getopt`, after a non-option argument, all further
[all …]
/third_party/gettext/gnulib-local/lib/
Dunistd.in.h.diff6 /* Get getopt(), optarg, optind, opterr, optopt. */
8 +/* Also, don't include <getopt.h> inside libgettextpo, because we use
9 + the getopt module only in gettext-tools/gnulib-lib/, not in
13 # include <getopt-cdefs.h>
14 # include <getopt-pfx-core.h>
Dgetopt-core.h.diff1 --- getopt-core.h 2017-05-15 19:05:30.377063268 +0200
2 +++ getopt-core.h.new 2017-05-15 19:10:17.203267905 +0200
8 + <stdlib.h> includes <getopt.h>, and <config.h> is not a prerequisite for
15 /* This header should not be used directly; include getopt.h or
17 a protective #error, because the guard macro for getopt.h in
34 /* Callers store zero here to inhibit the error message 'getopt' prints
/third_party/python/Tools/scripts/
Dfindlinksto.py10 import getopt
14 opts, args = getopt.getopt(sys.argv[1:], '')
16 raise getopt.GetoptError('not enough arguments', None)
17 except getopt.GetoptError as msg:
Duntabify.py7 import getopt
13 opts, args = getopt.getopt(sys.argv[1:], "t:")
15 raise getopt.error("At least one file argument required")
16 except getopt.error as msg:
Dfixnotice.py45 import getopt
62 opts, args = getopt.getopt(sys.argv[1:], 'hv',
65 except getopt.error as msg:
Dndiff.py85 import getopt
87 opts, args = getopt.getopt(args, "qr:")
88 except getopt.error as detail:
Dpickle2db.py27 import getopt
57 opts, args = getopt.getopt(args, "hbrdag",
60 except getopt.error:
Ddb2pickle.py22 import getopt
52 opts, args = getopt.getopt(args, "hbrdag",
55 except getopt.error:
Dfinddiv.py20 import getopt
25 opts, args = getopt.getopt(sys.argv[1:], "lh")
26 except getopt.error as msg:
Dfindnocoding.py10 import sys, os, re, getopt
83 opts, args = getopt.getopt(sys.argv[1:], 'cd')
84 except getopt.error as msg:
Dmd5sum.py23 import getopt
75 opts, args = getopt.getopt(args, 'blts:')
76 except getopt.error as msg:
/third_party/python/Misc/
Dpython-config.in6 import getopt
21 opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
22 except getopt.error:
/third_party/flutter/skia/third_party/externals/icu/source/tools/
Dicu-file-utf8-check.py30 import getopt
73 opts, args = getopt.getopt(argv, "h", ("help"))
74 except getopt.GetoptError:
/third_party/icu/icu4c/source/tools/
Dicu-file-utf8-check.py32 import getopt
75 opts, args = getopt.getopt(argv, "h", ("help"))
76 except getopt.GetoptError:
/third_party/icu/tools/scripts/
Dicu-file-utf8-check.py34 import getopt
90 opts, args = getopt.getopt(argv, "h", ("help"))
91 except getopt.GetoptError:
/third_party/e2fsprogs/include/nonunix/
Dgetopt.h108 extern int getopt (int argc, char *const *argv, const char *shortopts);
110 extern int getopt ();
124 extern int getopt ();
/third_party/libusb/msvc/getopt/
Dgetopt.h145 extern int getopt (int __argc, char *const *__argv, const char *__shortopts);
147 extern int getopt ();
164 extern int getopt ();
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/p2p/
Dp2p_flush.py12 import getopt
122 options, args = getopt.getopt(sys.argv[1:],"hi:w:")
124 except getopt.GetoptError:
Dp2p_listen.py12 import getopt
123 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:")
125 except getopt.GetoptError:
Dp2p_stop_find.py10 import getopt
127 options, args = getopt.getopt(sys.argv[1:],"ht:i:w:")
129 except getopt.GetoptError:
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/p2p/
Dp2p_flush.py12 import getopt
122 options, args = getopt.getopt(sys.argv[1:],"hi:w:")
124 except getopt.GetoptError:
Dp2p_disconnect.py11 import getopt
122 options, args = getopt.getopt(sys.argv[1:],"hi:w:")
124 except getopt.GetoptError:

12345678910>>...21