~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2007-07-12 21:40:41 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070712214041-zbqxsx0j9230hwud
Update cdiff option definition

Show diffs side-by-side

added added

removed removed

Lines of Context:
570
570
class cmd_cdiff(bzrlib.commands.Command):
571
571
    """A color version of bzr's diff"""
572
572
    takes_args = property(lambda x: get_cmd_object('diff').takes_args)
573
 
 
574
 
    def _takes_options(self):
575
 
        options = list(get_cmd_object('diff').takes_options)
576
 
        options.append(Option('check-style',
 
573
    takes_options = list(get_cmd_object('diff').takes_options) + [
 
574
        Option('check-style',
577
575
            help='Warn if trailing whitespace or spurious changes have been'
578
 
                 ' added.'))
579
 
        return options
580
 
 
581
 
    takes_options = property(_takes_options)
 
576
                 ' added.')]
582
577
 
583
578
    def run(self, check_style=False, *args, **kwargs):
584
579
        from colordiff import colordiff