From fbddead1cba8ab43fecf9073d834395a2375f0b2 Mon Sep 17 00:00:00 2001 From: Anita Kuno Date: Thu, 17 Jan 2013 17:08:01 +0000 Subject: [PATCH] Fixed Version Functionality In accordance with bug-1068521, cinder version functionality is available via the shell. Change-Id: If9608291f318057fc8fa61151328d6503a79d70d --- cinderclient/shell.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cinderclient/shell.py b/cinderclient/shell.py index 6594f7f79..a6929dbbb 100644 --- a/cinderclient/shell.py +++ b/cinderclient/shell.py @@ -79,6 +79,10 @@ class OpenStackCinderShell(object): action='store_true', help=argparse.SUPPRESS) + parser.add_argument('--version', + action='version', + version=cinderclient.__version__) + parser.add_argument('--debug', action='store_true', default=utils.env('CINDERCLIENT_DEBUG',