~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Martin Packman
  • Date: 2011-12-08 18:58:27 UTC
  • mto: This revision was merged to the branch mainline in revision 6359.
  • Revision ID: martin.packman@canonical.com-20111208185827-rnav0jtrbp1none0
Add export-pot --include-duplicates option for permitting multiple entries with the same msgid

Show diffs side-by-side

added added

removed removed

Lines of Context:
6550
6550
    takes_options = [Option('plugin', 
6551
6551
                            help='Export help text from named command '\
6552
6552
                                 '(defaults to all built in commands).',
6553
 
                            type=str)]
 
6553
                            type=str),
 
6554
                     Option('include-duplicates',
 
6555
                            help='Output multiple copies of the same msgid '
 
6556
                                 'string if it appears more than once.'),
 
6557
                            ]
6554
6558
 
6555
 
    def run(self, plugin=None):
 
6559
    def run(self, plugin=None, include_duplicates=False):
6556
6560
        from bzrlib.export_pot import export_pot
6557
 
        export_pot(self.outf, plugin)
 
6561
        export_pot(self.outf, plugin, include_duplicates)
6558
6562
 
6559
6563
 
6560
6564
def _register_lazy_builtins():