~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to command_classes.py

  • Committer: Aaron Bentley
  • Date: 2009-09-26 17:07:23 UTC
  • mfrom: (723.4.1 bzrtools)
  • Revision ID: aaron@aaronbentley.com-20090926170723-vxjo8mwa1jyhelqx
Provide -p as alias for --strip

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
    """Apply a named patch to the current tree.
131
131
    """
132
132
    takes_args = ['filename?']
133
 
    takes_options = [Option('strip', type=int, help=strip_help),
 
133
    takes_options = [Option('strip', type=int, short_name='p', help=strip_help),
134
134
                     Option('silent', help='Suppress chatter.')]
135
135
    def run(self, filename=None, strip=None, silent=False):
136
136
        from patch import patch