Use existing vars for short options and command parameters.

This commit is contained in:
Bastian Kleineidam 2010-03-10 20:30:31 +01:00
parent 6f5427fb50
commit c4c9eceb28
1 changed files with 1 additions and 3 deletions

4
patool
View File

@ -64,9 +64,7 @@ def test (archive, *archives, **kwargs):
return handle_multi_archive((archive,)+archives, 'test', **kwargs)
@baker.command(shortopts={"verbose": "v"}, params={
"verbose": "Verbose operation (if the helper application supports it).",
})
@baker.command(shortopts=shortopts, params=params)
def create (archive, file1, *files, **kwargs):
"""Create an archive from given files."""
allfiles = (file1,)+files