From b012ef2e162f950eea0fc21b0b4c516d2fde13fa Mon Sep 17 00:00:00 2001 From: Kirill Zaitsev Date: Thu, 6 Aug 2015 15:56:30 +0300 Subject: [PATCH] Updated package-import help description Improved category metavar. Removed incorrect note of possibility to use comma in categorie list Added note about possibility to use -- to separate positional FILE arguments from the rest of arguments. Change-Id: Ia6e8f7c35bfb912d526db23a6bf8e766e7765187 Closes-Bug: #1478912 --- muranoclient/v1/shell.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/muranoclient/v1/shell.py b/muranoclient/v1/shell.py index 6b9ae142..d96f3522 100644 --- a/muranoclient/v1/shell.py +++ b/muranoclient/v1/shell.py @@ -366,7 +366,7 @@ def _handle_package_exists(mc, data, package, exists_action): @utils.arg('filename', metavar='', nargs='+', help='URL of the murano zip package, FQPN, or path to zip package') -@utils.arg('-c', '--categories', metavar='', nargs='*', +@utils.arg('-c', '--categories', metavar='', nargs='*', help='Category list to attach') @utils.arg('--is-public', action='store_true', default=False, help='Make the package available for users from other tenants') @@ -378,7 +378,10 @@ def _handle_package_exists(mc, data, package, exists_action): def do_package_import(mc, args): """Import a package. `FILE` can be either a path to a zip file, url or a FQPN. - `categories` can be separated by a comma. + You can use `--` to separate `FILE`s from other arguments. + + Categories have to be separated with a space and have to be already + present in murano. """ data = {"is_public": args.is_public}