From b30a7b795f346e7ccc5575602550ca430bfb71a0 Mon Sep 17 00:00:00 2001 From: Shu Yingya Date: Wed, 21 Sep 2016 12:16:35 +0800 Subject: [PATCH] replace metavar "volume-id" with "volume" to avoid ambiguity The help message of command "openstack volume show" accepts either volume-name or volume-ID. But the metavar is "volume-id" as below. It can easily lead to misunderstanding. usage: openstack volume show [-h] [-f {json,shell,table,value,yaml}] [-c COLUMN] [--max-width ] [--noindent][--prefix PREFIX] Change-Id: I57576ea23868b1026cf268be69b39e98a53aafd4 --- openstackclient/volume/v2/volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/volume/v2/volume.py b/openstackclient/volume/v2/volume.py index 5089aed1e6..0805b2be67 100644 --- a/openstackclient/volume/v2/volume.py +++ b/openstackclient/volume/v2/volume.py @@ -490,7 +490,7 @@ class ShowVolume(command.ShowOne): parser = super(ShowVolume, self).get_parser(prog_name) parser.add_argument( 'volume', - metavar="", + metavar="", help=_("Volume to display (name or ID)") ) return parser