~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to command_classes.py

  • Committer: James Westby
  • Date: 2009-09-24 20:12:55 UTC
  • mto: This revision was merged to the branch mainline in revision 727.
  • Revision ID: james.westby@canonical.com-20090924201255-jx3pxuz90eeujvpi
Add -p as an alias for --strip in cmd_patch.

GNU patch allows -p as a shorthand for --strip, and I wager that most people
have that hardcoded in their fingers.

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