/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Aaron Bentley
  • Date: 2007-08-15 01:11:27 UTC
  • mfrom: (2699 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2700.
  • Revision ID: aaron.bentley@utoronto.ca-20070815011127-0il5s8oqmt26bma7
Merge bzr.dev

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