~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/option.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-14 05:08:55 UTC
  • mfrom: (1551.13.2 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070314050855-7241ac88a0577101
Hide dirstate-with-subtree, introduce dirstate-tags

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
        if self.value_switches:
278
278
            for key in self.registry.keys():
279
279
                option_strings = ['--%s' % key]
 
280
                if getattr(self.registry.get_info(key), 'hidden', False):
 
281
                    help = optparse.SUPPRESS_HELP
 
282
                else:
 
283
                    help = self.registry.get_help(key)
280
284
                parser.add_option(action='callback',
281
285
                              callback=self._optparse_value_callback(key),
282
 
                                  help=self.registry.get_help(key),
 
286
                                  help=help,
283
287
                                  *option_strings)
284
288
 
285
289
    def _optparse_value_callback(self, cb_value):