/third_party/python/Lib/test/ |
H A D | test_getopt.py | 8 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 D | getopt.c | 29 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 D | findlinksto.py | 10 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 D | untabify.py | 7 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 D | fixnotice.py | 45 import getopt namespace 62 opts, args = getopt.getopt(sys.argv[1:], 'hv', 65 except getopt.error as msg:
|
H A D | db2pickle.py | 22 import getopt namespace 52 opts, args = getopt.getopt(args, "hbrdag", 55 except getopt.error:
|
H A D | finddiv.py | 20 import getopt namespace 25 opts, args = getopt.getopt(sys.argv[1:], "lh") 26 except getopt.error as msg:
|
H A D | findnocoding.py | 10 import sys, os, re, getopt namespace 83 opts, args = getopt.getopt(sys.argv[1:], 'cd') 84 except getopt.error as msg:
|
H A D | ndiff.py | 85 import getopt namespace 87 opts, args = getopt.getopt(args, "qr:") 88 except getopt.error as detail:
|
H A D | md5sum.py | 23 import getopt namespace 75 opts, args = getopt.getopt(args, 'blts:') 76 except getopt.error as msg:
|
H A D | pickle2db.py | 27 import getopt namespace 57 opts, args = getopt.getopt(args, "hbrdag", 60 except getopt.error:
|
/third_party/backends/include/ |
H A D | lgetopt.h | 1 /* 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 D | update-test-output.py | 16 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 D | icu-file-utf8-check.py | 34 import getopt namespace 90 opts, args = getopt.getopt(argv, "h", ("help")) 91 except getopt.GetoptError:
|
/third_party/python/Tools/demo/ |
H A D | markov.py | 40 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 D | p2p_disconnect.py | 11 import getopt namespace 122 options, args = getopt.getopt(sys.argv[1:],"hi:w:") 124 except getopt.GetoptError:
|
H A D | p2p_find.py | 12 import getopt namespace 133 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:") 135 except getopt.GetoptError:
|
H A D | p2p_flush.py | 12 import getopt namespace 122 options, args = getopt.getopt(sys.argv[1:],"hi:w:") 124 except getopt.GetoptError:
|
H A D | p2p_listen.py | 12 import getopt namespace 123 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:") 125 except getopt.GetoptError:
|
H A D | p2p_stop_find.py | 10 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 D | p2p_disconnect.py | 11 import getopt namespace 122 options, args = getopt.getopt(sys.argv[1:],"hi:w:") 124 except getopt.GetoptError:
|
H A D | p2p_find.py | 12 import getopt namespace 133 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:") 135 except getopt.GetoptError:
|
H A D | p2p_flush.py | 12 import getopt namespace 122 options, args = getopt.getopt(sys.argv[1:],"hi:w:") 124 except getopt.GetoptError:
|
H A D | p2p_listen.py | 12 import getopt namespace 123 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:") 125 except getopt.GetoptError:
|
H A D | p2p_stop_find.py | 10 import getopt namespace 127 options, args = getopt.getopt(sys.argv[1:],"ht:i:w:") 129 except getopt.GetoptError:
|