/third_party/python/Lib/test/ |
D | test_getopt.py | 8 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/ |
D | getopt.c | 31 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/ |
D | getopt.rst | 1 :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/ |
D | unistd.in.h.diff | 6 /* 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>
|
D | getopt-core.h.diff | 1 --- 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/ |
D | findlinksto.py | 10 import getopt 14 opts, args = getopt.getopt(sys.argv[1:], '') 16 raise getopt.GetoptError('not enough arguments', None) 17 except getopt.GetoptError as msg:
|
D | untabify.py | 7 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:
|
D | fixnotice.py | 45 import getopt 62 opts, args = getopt.getopt(sys.argv[1:], 'hv', 65 except getopt.error as msg:
|
D | ndiff.py | 85 import getopt 87 opts, args = getopt.getopt(args, "qr:") 88 except getopt.error as detail:
|
D | pickle2db.py | 27 import getopt 57 opts, args = getopt.getopt(args, "hbrdag", 60 except getopt.error:
|
D | db2pickle.py | 22 import getopt 52 opts, args = getopt.getopt(args, "hbrdag", 55 except getopt.error:
|
D | finddiv.py | 20 import getopt 25 opts, args = getopt.getopt(sys.argv[1:], "lh") 26 except getopt.error as msg:
|
D | findnocoding.py | 10 import sys, os, re, getopt 83 opts, args = getopt.getopt(sys.argv[1:], 'cd') 84 except getopt.error as msg:
|
D | md5sum.py | 23 import getopt 75 opts, args = getopt.getopt(args, 'blts:') 76 except getopt.error as msg:
|
/third_party/python/Misc/ |
D | python-config.in | 6 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/ |
D | icu-file-utf8-check.py | 30 import getopt 73 opts, args = getopt.getopt(argv, "h", ("help")) 74 except getopt.GetoptError:
|
/third_party/icu/icu4c/source/tools/ |
D | icu-file-utf8-check.py | 32 import getopt 75 opts, args = getopt.getopt(argv, "h", ("help")) 76 except getopt.GetoptError:
|
/third_party/icu/tools/scripts/ |
D | icu-file-utf8-check.py | 34 import getopt 90 opts, args = getopt.getopt(argv, "h", ("help")) 91 except getopt.GetoptError:
|
/third_party/e2fsprogs/include/nonunix/ |
D | getopt.h | 108 extern int getopt (int argc, char *const *argv, const char *shortopts); 110 extern int getopt (); 124 extern int getopt ();
|
/third_party/libusb/msvc/getopt/ |
D | getopt.h | 145 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/ |
D | p2p_flush.py | 12 import getopt 122 options, args = getopt.getopt(sys.argv[1:],"hi:w:") 124 except getopt.GetoptError:
|
D | p2p_listen.py | 12 import getopt 123 options, args = getopt.getopt(sys.argv[1:],"hi:t:w:") 125 except getopt.GetoptError:
|
D | p2p_stop_find.py | 10 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/ |
D | p2p_flush.py | 12 import getopt 122 options, args = getopt.getopt(sys.argv[1:],"hi:w:") 124 except getopt.GetoptError:
|
D | p2p_disconnect.py | 11 import getopt 122 options, args = getopt.getopt(sys.argv[1:],"hi:w:") 124 except getopt.GetoptError:
|