~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Aaron Bentley
  • Date: 2005-10-28 02:34:22 UTC
  • mto: (1185.35.8)
  • mto: This revision was merged to the branch mainline in revision 1491.
  • Revision ID: aaron.bentley@utoronto.ca-20051028023422-f4c0b704edd5f79d
Restored short options in help

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
 
156
156
        Short options are globally registered.
157
157
        """
158
 
        return Option.SHORT_OPTIONS.get(self.name)
 
158
        for short, option in Option.SHORT_OPTIONS.iteritems():
 
159
            if option is self:
 
160
                return short
159
161
 
160
162
 
161
163
def _global_option(name, **kwargs):