Adding 'type' arg to 'package' command

master
Lertsenem 2015-09-12 17:53:22 +02:00
parent 3ea6eeced8
commit 631a0b8028
1 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,7 @@ parser_help = subparsers.add_parser("help", help="Print this help")
# Package
parser_package = subparsers.add_parser("package", help="Package a persoconf repository")
parser_package.add_argument( "apps", type=str, help="The apps to package ; defaults to all apps", nargs="*", default=[] )
parser_package.add_argument( "type", type=str, help="The type of package to use", nargs="?", default="tar", choices = [ "tar" ] )
# Update
parser_update = subparsers.add_parser("update", help="Backup an app configuration in the persoconf directory with the configuration in use now")
@ -377,4 +378,7 @@ if args.command == "update":
else:
log.warning("Failed to update %s from %s ; ignoring" % (f, appmeta.files[f]["dest"]))
# PACKAGE COMMAND
########################################
########################################