From 82a696688cdf49be9ce13f2cb0f9692924c6e5eb Mon Sep 17 00:00:00 2001 From: Feng Shengqin Date: Tue, 23 May 2017 10:18:57 +0800 Subject: [PATCH] Improve style of zun pull The current style: $ zun help pull usage: zun pull Pull an image. Positional arguments: Image repository To change it as following: $ zun help pull usage: zun pull Pull an image. Positional arguments: Name of the image Change-Id: I37e825e79ff21cf4f5b1315fb6156606c4184782 Closes-Bug: #1692598 --- zunclient/v1/images_shell.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zunclient/v1/images_shell.py b/zunclient/v1/images_shell.py index ba3680b9..ddb2a767 100644 --- a/zunclient/v1/images_shell.py +++ b/zunclient/v1/images_shell.py @@ -18,13 +18,13 @@ def _show_image(image): utils.print_dict(image._info) -@utils.arg('repo', - metavar='', - help='Image repository') +@utils.arg('image', + metavar='', + help='Name of the image') def do_pull(cs, args): """Pull an image.""" opts = {} - opts['repo'] = args.repo + opts['repo'] = args.image _show_image(cs.images.create(**opts))