Make specifying paths when running create optional.

This commit is contained in:
Jonas Borgström 2012-03-03 13:56:51 +01:00
parent 78ab5bd868
commit f7e499ceaa
1 changed files with 2 additions and 2 deletions

View File

@ -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)