Home
last modified time | relevance | path

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

12345678910>>...31

/external/python/cpython2/Lib/test/
Dtest_getopt.py7 import getopt
22 self.assertRaises(getopt.GetoptError, *args, **kwargs)
25 self.assertTrue(getopt.short_has_arg('a', 'a:'))
26 self.assertFalse(getopt.short_has_arg('a', 'a'))
27 self.assertError(getopt.short_has_arg, 'a', 'b')
30 has_arg, option = getopt.long_has_args('abc', ['abc='])
34 has_arg, option = getopt.long_has_args('abc', ['abc'])
38 has_arg, option = getopt.long_has_args('abc', ['abcd'])
42 self.assertError(getopt.long_has_args, 'abc', ['def'])
43 self.assertError(getopt.long_has_args, 'abc', [])
[all …]
/external/python/cpython3/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 …]
/external/perfetto/src/base/
Dgetopt_compat_unittest.cc45 using GetoptFn = decltype(&getopt_compat::getopt);
47 GetoptFn getopt = &getopt_compat::getopt; member
58 using GetoptFn = decltype(&::getopt);
60 GetoptFn getopt = &::getopt; member
107 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
111 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
115 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), 'h'); in TYPED_TEST()
117 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
122 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
126 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
[all …]
/external/python/cpython3/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 …]
/external/python/cpython2/Doc/library/
Dgetopt.rst1 :mod:`getopt` --- C-style parser for command line options
4 .. module:: getopt
8 **Source code:** :source:`Lib/getopt.py`
14 The :mod:`getopt` module is a parser for command line options whose API is
15 designed to be familiar to users of the C :c:func:`getopt` function. Users who
16 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, options[, long_options])
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 …]
/external/fonttools/Lib/fontTools/
Dttx.py115 import getopt
161 raise getopt.GetoptError("The -d option value must be an existing directory")
193 raise getopt.GetoptError(
216 raise getopt.GetoptError(
228 raise getopt.GetoptError("-q and -v options are mutually exclusive")
236 raise getopt.GetoptError("-m and --flavor options are mutually exclusive")
238 raise getopt.GetoptError("-t and -x options are mutually exclusive")
240 raise getopt.GetoptError("Must specify exactly one TTX source file when using -m")
242 raise getopt.GetoptError("--with-zopfli option requires --flavor 'woff'")
345 rawOptions, files = getopt.getopt(args, "ld:o:fvqht:x:sgim:z:baey:",
[all …]
/external/flac/src/share/getopt/
DCMakeLists.txt7 add_library(getopt STATIC getopt.c getopt1.c) target
10 target_include_directories(getopt PRIVATE ${Intl_INCLUDE_DIRS})
11 target_link_libraries(getopt PUBLIC ${Intl_LIBRARIES})
12 target_compile_definitions(getopt PRIVATE HAVE_LIBINTL_H)
/external/python/cpython2/Demo/pdist/
Dcmdfw.py41 import getopt, sys
44 opts, args = getopt.getopt(args, self.GlobalFlags)
45 except getopt.error, msg:
64 opts, args = getopt.getopt(args[1:], flags)
65 except getopt.error, msg:
Drrcs.py7 import getopt
16 opts, rest = getopt.getopt(sys.argv[1:], 'h:p:d:qvL')
22 raise getopt.error, "unknown command"
24 copts, files = getopt.getopt(rest, coptset)
25 except getopt.error, msg:
/external/python/cpython3/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:
/external/python/cpython2/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, msg:
Duntabify.py7 import getopt
12 opts, args = getopt.getopt(sys.argv[1:], "t:")
14 raise getopt.error, "At least one file argument required"
15 except getopt.error, msg:
Dcvsfiles.py16 import getopt
22 opts, args = getopt.getopt(sys.argv[1:], "n:")
23 except getopt.error, msg:
/external/flac/src/share/
DMakefile.am25 getopt/CMakeLists.txt \
36 getopt/libgetopt.la \
52 getopt_libgetopt_la_SOURCES = getopt/getopt.c getopt/getopt1.c
/external/python/cpython2/Tools/versioncheck/
Dcheckversions.py6 import getopt
39 options, arguments = getopt.getopt(sys.argv[1:], 'v:')
40 except getopt.error:
/external/vboot_reference/scripts/image_signing/lib/shflags/
Dshflags37 # -- as in getopt(), terminates flag-processing
53 # NOTE: Not all systems include a getopt version that supports long flags. On
67 # __flags_opts: options parsed by getopt
114 # getopt version
119 getopt >/dev/null 2>&1
121 0) __FLAGS_GETOPT_VERS=${__FLAGS_GETOPT_VERS_STD} ;; # bsd getopt
123 # TODO(kward): look into '-T' option to test the internal getopt() version
124 if [ "`getopt --version`" = '-- ' ]; then
131 _flags_fatal 'unable to determine getopt version'
136 # getopt optstring lengths
[all …]
/external/python/cpython2/Mac/scripts/
Dcachersrc.py10 import getopt
27 opts, args = getopt.getopt(sys.argv[1:], 'vf')
30 except (getopt.GetoptError, NoArgsError):
/external/scapy/scapy/tools/
Dcheck_asdis.py4 import getopt
21 opts=getopt.getopt(argv, "hi:o:azdv")
41 raise getopt.GetoptError("Missing pcap file (-i)")
43 except getopt.GetoptError as e:
/external/python/cpython2/Demo/scripts/
Dscript.py10 import os, time, sys, getopt
25 opts, args = getopt.getopt(sys.argv[1:], 'ap')
26 except getopt.error, msg:
/external/libvpx/test/android/
Dscrape_gtest_log.py16 import getopt
30 getopt.getopt(sys.argv[1:], \
32 except getopt.GetOptError:
/external/libabigail/tests/
Dupdate-test-output.py16 import getopt
33 opts, args = getopt.getopt(sys.argv[1:], "hi", ["help"])
34 except getopt.GetoptError as err:
/external/python/cpython2/Misc/
Dpython-config.in5 import getopt
17 opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
18 except getopt.error:
/external/autotest/server/samples/
Drun_test.srv1 import getopt
22 opts, args = getopt.getopt(args, 't:l:', [])
23 except getopt.GetoptError, e:

12345678910>>...31