Lines Matching refs:opt_str
262 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)
1406 If the :class:`OptionParser` has an option corresponding to *opt_str*, that
1408 those option strings become invalid. If *opt_str* does not occur in any
1620 func(option, opt_str, value, parser, *args, **kwargs)
1627 ``opt_str``
1629 (If an abbreviated long option was used, ``opt_str`` will be the full,
1631 command-line as an abbreviation for ``--foobar``, then ``opt_str`` will be
1652 the current list of remaining arguments, ie. with ``opt_str`` and
1693 def record_foo_seen(option, opt_str, value, parser):
1709 def check_order(option, opt_str, value, parser):
1727 def check_order(option, opt_str, value, parser):
1729 raise OptionValueError("can't use %s after -b" % opt_str)
1746 def check_moon(option, opt_str, value, parser):
1749 % opt_str)
1772 def store_value(option, opt_str, value, parser):
1813 def vararg_callback(option, opt_str, value, parser):