Home
last modified time | relevance | path

Searched refs:getopt (Results 1 - 25 of 470) sorted by relevance

12345678910>>...19

/third_party/python/Lib/test/
H A Dtest_getopt.py8 import getopt namespace
19 self.assertRaises(getopt.GetoptError, *args, **kwargs)
22 self.assertTrue(getopt.short_has_arg('a', 'a:'))
23 self.assertFalse(getopt.short_has_arg('a', 'a'))
24 self.assertError(getopt.short_has_arg, 'a', 'b')
27 has_arg, option = getopt.long_has_args('abc', ['abc='])
31 has_arg, option = getopt.long_has_args('abc', ['abc'])
35 has_arg, option = getopt.long_has_args('abc', ['abcd'])
39 self.assertError(getopt.long_has_args, 'abc', ['def'])
40 self.assertError(getopt
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dgetopt.c29 char *argv[] = {"./getopt", "-b"}; in getopt_0100()
31 int result = getopt(argc, argv, optstring); in getopt_0100()
33 t_error("%s getopt get result is '%c' are not want 'b'\n", __func__, result); in getopt_0100()
46 char *argv[] = {"./getopt", "-a12345"}; in getopt_0200()
48 int result = getopt(argc, argv, optstring); in getopt_0200()
50 t_error("%s getopt get result is %d are not want -1\n", __func__, result); in getopt_0200()
62 char *argv[] = {"./getopt", "-a"}; in getopt_0300()
64 int result = getopt(argc, argv, optstring); in getopt_0300()
66 t_error("%s getopt get result is %d are not want -1\n", __func__, result); in getopt_0300()
79 char *argv[] = {"./getopt", " in getopt_0400()
[all...]
/third_party/python/Tools/scripts/
H A Dfindlinksto.py10 import getopt namespace
14 opts, args = getopt.getopt(sys.argv[1:], '')
16 raise getopt.GetoptError('not enough arguments', None)
17 except getopt.GetoptError as msg:
H A Duntabify.py7 import getopt namespace
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:
H A Dfixnotice.py45 import getopt namespace
62 opts, args = getopt.getopt(sys.argv[1:], 'hv',
65 except getopt.error as msg:
H A Ddb2pickle.py22 import getopt namespace
52 opts, args = getopt.getopt(args, "hbrdag",
55 except getopt.error:
H A Dfinddiv.py20 import getopt namespace
25 opts, args = getopt.getopt(sys.argv[1:], "lh")
26 except getopt.error as msg:
H A Dfindnocoding.py10 import sys, os, re, getopt namespace
83 opts, args = getopt.getopt(sys.argv[1:], 'cd')
84 except getopt.error as msg:
H A Dndiff.py85 import getopt namespace
87 opts, args = getopt.getopt(args, "qr:")
88 except getopt.error as detail:
H A Dmd5sum.py23 import getopt namespace
75 opts, args = getopt.getopt(args, 'blts:')
76 except getopt.error as msg:
H A Dpickle2db.py27 import getopt namespace
57 opts, args = getopt.getopt(args, "hbrdag",
60 except getopt.error:
/third_party/backends/include/
H A Dlgetopt.h1 /* Declarations for getopt.
21 #include <getopt.h>
46 /* For communication from `getopt' to the caller.
47 When `getopt' finds an option that takes an argument,
56 and for communication between successive calls to `getopt'.
58 On entry to `getopt', zero means this is the first call; initialize.
60 When `getopt' returns -1, this is the index of the first of the
68 /* Callers store zero here to inhibit the error message `getopt' prints
96 one). For long options that have a zero `flag' field, `getopt'
118 #endif /* need getopt */
[all...]
/third_party/libabigail/tests/
H A Dupdate-test-output.py16 import getopt namespace
33 opts, args = getopt.getopt(sys.argv[1:], "hi", ["help"])
34 except getopt.GetoptError as err:
/third_party/icu/tools/scripts/
H A Dicu-file-utf8-check.py34 import getopt namespace
90 opts, args = getopt.getopt(argv, "h", ("help"))
91 except getopt.GetoptError:
/third_party/python/Tools/demo/
H A Dmarkov.py40 import sys, random, getopt namespace
43 opts, args = getopt.getopt(args, '0123456789cdwq')
44 except getopt.error:
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/p2p/
H A Dp2p_disconnect.py11 import getopt namespace
122 options, args = getopt.getopt(sys.argv[1:],"hi:w:")
124 except getopt.GetoptError:
H A Dp2p_find.py12 import getopt namespace
133 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:")
135 except getopt.GetoptError:
H A Dp2p_flush.py12 import getopt namespace
122 options, args = getopt.getopt(sys.argv[1:],"hi:w:")
124 except getopt.GetoptError:
H A Dp2p_listen.py12 import getopt namespace
123 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:")
125 except getopt.GetoptError:
H A Dp2p_stop_find.py10 import getopt namespace
127 options, args = getopt.getopt(sys.argv[1:],"ht:i:w:")
129 except getopt.GetoptError:
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/p2p/
H A Dp2p_disconnect.py11 import getopt namespace
122 options, args = getopt.getopt(sys.argv[1:],"hi:w:")
124 except getopt.GetoptError:
H A Dp2p_find.py12 import getopt namespace
133 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:")
135 except getopt.GetoptError:
H A Dp2p_flush.py12 import getopt namespace
122 options, args = getopt.getopt(sys.argv[1:],"hi:w:")
124 except getopt.GetoptError:
H A Dp2p_listen.py12 import getopt namespace
123 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:")
125 except getopt.GetoptError:
H A Dp2p_stop_find.py10 import getopt namespace
127 options, args = getopt.getopt(sys.argv[1:],"ht:i:w:")
129 except getopt.GetoptError:

Completed in 6 milliseconds

12345678910>>...19