b.o.ListOption(Option) : class documentation

Part of bzrlib.option View In Hierarchy

Option used to provide a list of values.

On the command line, arguments are specified by a repeated use of the
option. '-' is a special argument that resets the list. For example,
  --foo=a --foo=b
sets the value of the 'foo' option to ['a', 'b'], and
  --foo=a --foo=b --foo=- --foo=c
sets the value of the 'foo' option to ['c'].
Method add_option Add this option to an Optparse parser.
Method _optparse_callback Undocumented

Inherited from Option:

Method __init__ Make a new command option.
Method short_name Undocumented
Method set_short_name Undocumented
Method get_negation_name Undocumented
Method iter_switches Iterate through the list of switches provided by the option
Method is_hidden Undocumented
Method _optparse_bool_callback Undocumented
def add_option(self, parser, short_name):
Add this option to an Optparse parser.
def _optparse_callback(self, option, opt, value, parser):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.