From 4dec7fc06e744fca5336c83c18d369353f67b0e0 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 9 Apr 2012 12:27:42 +0200 Subject: [PATCH] Use some of the new convenience functions. --- patool | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/patool b/patool index 3b79f97..02d1f59 100755 --- a/patool +++ b/patool @@ -75,16 +75,18 @@ def create (archive, file1, *files, **kwargs): return handle_archive(archive, 'create', *allfiles, **kwargs) -@baker.command -def diff (archive1, archive2): +@baker.command(shortopts=shortopts, params=params) +def diff (archive1, archive2, **kwargs): """Show differences between two archives.""" - return handle_archive(archive1, "diff", archive2) + from patoolib import diff + return diff(archive1, archive2, **kwargs) -@baker.command -def repack (archive1, archive2): +@baker.command(shortopts=shortopts, params=params) +def repack (archive1, archive2, **kwargs): """Repackage one archive in another format.""" - return handle_archive(archive1, "repack", archive2) + from patoolib import repack + return repack(archive1, archive2, **kwargs) @baker.command