From f7e499ceaa7aa2cf5f81463f3e5b5d59f509ffda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Sat, 3 Mar 2012 13:56:51 +0100 Subject: [PATCH] Make specifying paths when running create optional. --- darc/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/darc/archiver.py b/darc/archiver.py index 662950584..38c932eb5 100644 --- a/darc/archiver.py +++ b/darc/archiver.py @@ -355,8 +355,8 @@ class Archiver(object): subparser.add_argument('archive', metavar='ARCHIVE', type=location_validator(archive=True), help='Archive to create') - subparser.add_argument('paths', metavar='PATH', nargs='+', type=str, - help='Paths to add to archive') + subparser.add_argument('paths', metavar='PATH', nargs='*', type=str, + default=['.'], help='Paths to add to archive') subparser = subparsers.add_parser('extract', parents=[common_parser]) subparser.set_defaults(func=self.do_extract)