~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-27 11:31:35 UTC
  • mto: This revision was merged to the branch mainline in revision 6174.
  • Revision ID: jriddell@canonical.com-20110927113135-4evq3zsaika1iw92
change export-pot --plugins option to --plugin which takes a plugin name rather than command name

Show diffs side-by-side

added added

removed removed

Lines of Context:
6397
6397
    __doc__ = """Export command helps and error messages in po format."""
6398
6398
 
6399
6399
    hidden = True
6400
 
    takes_options = [Option('plugins', 
6401
 
                            help='Comma separated list of plugin commands '\
6402
 
                                 'to export (defaults to all built in commands).',
 
6400
    takes_options = [Option('plugin', 
 
6401
                            help='Export help text from named command '\
 
6402
                                 '(defaults to all built in commands).',
6403
6403
                            type=str)]
6404
6404
 
6405
 
    def run(self, plugins=None):
 
6405
    def run(self, plugin=None):
6406
6406
        from bzrlib.export_pot import export_pot
6407
 
        export_pot(self.outf, plugins)
 
6407
        export_pot(self.outf, plugin)
6408
6408
 
6409
6409
 
6410
6410
def _register_lazy_builtins():