~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-12 08:52:45 UTC
  • mfrom: (2598.1.12 check-options)
  • Revision ID: pqm@pqm.ubuntu.com-20070712085245-afvocysw990c1a3z
cleanup global options, and require options to provide a help string

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
 
333
333
        Maps from long option name to option object."""
334
334
        r = dict()
335
 
        r['help'] = option.Option.OPTIONS['help']
 
335
        r['help'] = option._help_option
336
336
        for o in self.takes_options:
337
337
            if isinstance(o, basestring):
338
338
                o = option.Option.OPTIONS[o]