Home
last modified time | relevance | path

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

12345678910>>...31

/external/python/cpython3/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/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/perfetto/src/base/
Dgetopt_compat_unittest.cc45 using GetoptFn = decltype(&getopt_compat::getopt);
47 GetoptFn getopt = &getopt_compat::getopt; member
56 using GetoptFn = decltype(&::getopt);
58 GetoptFn getopt = &::getopt; member
103 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
107 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
111 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), 'h'); in TYPED_TEST()
114 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
119 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
123 EXPECT_EQ(t.getopt(this->argc, this->argv, sops), -1); in TYPED_TEST()
[all …]
/external/flac/src/share/
DMakefile.am26 getopt/CMakeLists.txt \
27 getopt/Makefile.lite \
28 getopt/getopt_static.vcproj \
29 getopt/getopt_static.vcxproj \
30 getopt/getopt_static.vcxproj.filters \
61 getopt/libgetopt.la \
78 getopt_libgetopt_la_SOURCES = getopt/getopt.c getopt/getopt1.c
DMakefile.lite19 .PHONY: all getopt grabbag replaygain_analysis replaygain_synthesis utf8
20 all: getopt replaygain_analysis grabbag replaygain_synthesis utf8
34 getopt:
53 -(cd getopt ; $(MAKE) -f Makefile.lite clean)
/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/flac/src/share/getopt/
DCMakeLists.txt5 add_library(getopt STATIC getopt.c getopt1.c) target
8 target_include_directories(getopt PRIVATE ${Intl_INCLUDE_DIRS})
9 target_link_libraries(getopt PUBLIC ${Intl_LIBRARIES})
10 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/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.py98 import getopt
145 raise getopt.GetoptError("The -d option value must be an existing directory")
177 raise getopt.GetoptError(
202 raise getopt.GetoptError(
214 raise getopt.GetoptError("-q and -v options are mutually exclusive")
222 raise getopt.GetoptError("-m and --flavor options are mutually exclusive")
224 raise getopt.GetoptError("-t and -x options are mutually exclusive")
226 raise getopt.GetoptError("Must specify exactly one TTX source file when using -m")
228 raise getopt.GetoptError("--with-zopfli option requires --flavor 'woff'")
332 rawOptions, files = getopt.getopt(args, "ld:o:fvqht:x:sgim:z:baey:",
[all …]
/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:
/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/python/cpython2/Tools/versioncheck/
Dcheckversions.py6 import getopt
39 options, arguments = getopt.getopt(sys.argv[1:], 'v:')
40 except getopt.error:
/external/python/cpython2/Mac/scripts/
Dcachersrc.py10 import getopt
27 opts, args = getopt.getopt(sys.argv[1:], 'vf')
30 except (getopt.GetoptError, NoArgsError):
/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:
Dpp.py25 import getopt
36 optlist, ARGS = getopt.getopt(sys.argv[1:], 'acde:F:np')
37 except getopt.error, msg:
/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/libvpx/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/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/Misc/
Dpython-config.in5 import getopt
17 opts, args = getopt.getopt(sys.argv[1:], '', valid_opts)
18 except getopt.error:

12345678910>>...31