~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-13 11:48:14 UTC
  • mfrom: (2241.1.20 repoformats)
  • Revision ID: pqm@pqm.ubuntu.com-20070213114814-9606106906ac312f
(mbp) split repository formats into repofmt (r=john)

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
        :param converter: Callable to invoke with the value name to produce
238
238
            the value.  If not supplied, self.registry.get is used.
239
239
        :param value_switches: If true, each possible value is assigned its
240
 
            own switch.  For example, instead of '--format metaweave',
241
 
            '--metaweave' can be used interchangeably.
 
240
            own switch.  For example, instead of '--format knit',
 
241
            '--knit' can be used interchangeably.
242
242
        """
243
243
        Option.__init__(self, name, help, type=self.convert)
244
244
        self.registry = registry