/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: Robert Widhopf-Fenk
  • Date: 2008-07-22 21:37:18 UTC
  • mto: (3617.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 3619.
  • Revision ID: hack@robf.de-20080722213718-ik0iezz5z5mz90it
Add the help of values to the help of the option if there are no value switches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
        for name, switch_help in kwargs.iteritems():
346
346
            name = name.replace('_', '-')
347
347
            reg.register(name, name, help=switch_help)
 
348
            if not value_switches:
 
349
                help = help + '  "' + name + '": ' + switch_help
 
350
                if not help.endswith("."):
 
351
                    help = help + "."
348
352
        return RegistryOption(name_, help, reg, title=title,
349
353
            value_switches=value_switches, enum_switch=enum_switch)
350
354