From f44006a219ed04a49f707d85e572147dd67b6ae9 Mon Sep 17 00:00:00 2001 From: prameswar Date: Mon, 23 Jan 2017 13:57:41 +0000 Subject: [PATCH] Changed Optional to Positional arg in zun pull zun help pull usage: zun pull -r Pull an image. Optional arguments: -r , --repo image repo repo is required argument so we can make it positional and can make it like docker: docker pull cirros zun pull cirros Closes-Bug: #1658674 Change-Id: Iabbedc3e52a5c3f4db93eff052029d0fa2afff0e --- zunclient/v1/images_shell.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zunclient/v1/images_shell.py b/zunclient/v1/images_shell.py index ecb3fcaa..ba3680b9 100644 --- a/zunclient/v1/images_shell.py +++ b/zunclient/v1/images_shell.py @@ -18,10 +18,9 @@ def _show_image(image): utils.print_dict(image._info) -@utils.arg('-r', '--repo', - required=True, +@utils.arg('repo', metavar='', - help='image repo') + help='Image repository') def do_pull(cs, args): """Pull an image.""" opts = {}