~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-08-09 15:19:06 UTC
  • mfrom: (2681.1.7 send-bundle)
  • Revision ID: pqm@pqm.ubuntu.com-20070809151906-hdn9oyslf2qib2op
Allow omitting -o for bundle, add --format

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        as values for the option, and they value is treated as the help.
286
286
        """
287
287
        reg = registry.Registry()
288
 
        for name, help in kwargs.iteritems():
 
288
        for name, switch_help in kwargs.iteritems():
289
289
            name = name.replace('_', '-')
290
 
            reg.register(name, name, help=help)
 
290
            reg.register(name, name, help=switch_help)
291
291
        return RegistryOption(name_, help, reg, title=title,
292
292
            value_switches=value_switches, enum_switch=enum_switch)
293
293