Lines Matching refs:opt_str
261 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)
1404 If the :class:`OptionParser` has an option corresponding to *opt_str*, that
1406 those option strings become invalid. If *opt_str* does not occur in any
1618 func(option, opt_str, value, parser, *args, **kwargs)
1625 ``opt_str``
1627 (If an abbreviated long option was used, ``opt_str`` will be the full,
1629 command-line as an abbreviation for ``--foobar``, then ``opt_str`` will be
1650 the current list of remaining arguments, ie. with ``opt_str`` and
1691 def record_foo_seen(option, opt_str, value, parser):
1707 def check_order(option, opt_str, value, parser):
1725 def check_order(option, opt_str, value, parser):
1727 raise OptionValueError("can't use %s after -b" % opt_str)
1744 def check_moon(option, opt_str, value, parser):
1747 % opt_str)
1770 def store_value(option, opt_str, value, parser):
1811 def vararg_callback(option, opt_str, value, parser):