~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Robert Collins
  • Date: 2005-10-30 00:00:09 UTC
  • mfrom: (1185.16.134)
  • Revision ID: robertc@robertcollins.net-20051030000009-9db99a338a0dfdac
MergeĀ fromĀ Martin.

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):
197
199
_global_option('quiet')
198
200
_global_option('remember', help='Remember the specified location as a'
199
201
               ' default.')
 
202
_global_option('reprocess', help='Reprocess to reduce spurious conflicts')
200
203
 
201
204
 
202
205
def _global_short(short_name, long_name):