Home
last modified time | relevance | path

Searched refs:opt_str (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Lib/
Doptparse.py142 def __init__(self, opt_str): argument
143 self.opt_str = opt_str
146 return _("no such option: %s") % self.opt_str
152 def __init__(self, opt_str, possibilities): argument
153 BadOptionError.__init__(self, opt_str)
158 % (self.opt_str, ", ".join(self.possibilities)))
1031 def get_option(self, opt_str): argument
1032 return (self._short_opt.get(opt_str) or
1033 self._long_opt.get(opt_str))
1035 def has_option(self, opt_str): argument
[all …]
/external/python/cpython2/Lib/
Doptparse.py136 def __init__(self, opt_str): argument
137 self.opt_str = opt_str
140 return _("no such option: %s") % self.opt_str
146 def __init__(self, opt_str, possibilities): argument
147 BadOptionError.__init__(self, opt_str)
152 % (self.opt_str, ", ".join(self.possibilities)))
1044 def get_option(self, opt_str): argument
1045 return (self._short_opt.get(opt_str) or
1046 self._long_opt.get(opt_str))
1048 def has_option(self, opt_str): argument
[all …]
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Dlib.sh192 local opt_str=$2
195 opt_str="($opt_str)"
200 printf "TEST: %-60s [FAIL]\n" "$test_name $opt_str"
212 printf "TEST: %-60s [PASS]\n" "$test_name $opt_str"
/external/python/cpython2/Doc/library/
Doptparse.rst262 parser.add_option(opt_str, ...,
660 .. method:: OptionParser.get_option_group(opt_str)
663 string *opt_str* (e.g. ``'-o'`` or ``'--option'``) belongs. If
906 OptionParser.add_option(*opt_str, attr=value, ...)
1224 func(option, opt_str, value, parser, *args, **kwargs)
1394 .. method:: OptionParser.get_option(opt_str)
1396 Returns the Option instance with the option string *opt_str*, or ``None`` if
1399 .. method:: OptionParser.has_option(opt_str)
1401 Return true if the OptionParser has an option with option string *opt_str*
1404 .. method:: OptionParser.remove_option(opt_str)
[all …]
/external/python/cpython3/Doc/library/
Doptparse.rst261 parser.add_option(opt_str, ...,
658 .. method:: OptionParser.get_option_group(opt_str)
661 string *opt_str* (e.g. ``'-o'`` or ``'--option'``) belongs. If
904 OptionParser.add_option(*opt_str, attr=value, ...)
1222 func(option, opt_str, value, parser, *args, **kwargs)
1392 .. method:: OptionParser.get_option(opt_str)
1394 Returns the Option instance with the option string *opt_str*, or ``None`` if
1397 .. method:: OptionParser.has_option(opt_str)
1399 Return true if the OptionParser has an option with option string *opt_str*
1402 .. method:: OptionParser.remove_option(opt_str)
[all …]
/external/libpng/contrib/tools/
Dpngcp.c1252 getallopts(struct display *dp, const char *opt_str, int *value) in getallopts() argument
1254 return getallopts_(dp, option_index(dp, opt_str, strlen(opt_str)), value, 0); in getallopts()
1258 getsearchopts(struct display *dp, const char *opt_str, int *value) in getsearchopts() argument
1262 const png_byte opt = option_index(dp, opt_str, strlen(opt_str)); in getsearchopts()