File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/python/cloudfoundry_client Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 9
9
10
10
from requests .exceptions import ConnectionError
11
11
12
+ from cloudfoundry_client import __version__
12
13
from cloudfoundry_client .client import CloudFoundryClient
13
14
from cloudfoundry_client .entities import InvalidStatusCode
14
15
@@ -168,6 +169,7 @@ def main():
168
169
description .append ('' )
169
170
170
171
parser = argparse .ArgumentParser (formatter_class = argparse .RawDescriptionHelpFormatter )
172
+ parser .add_argument ('-V' , '--version' , action = 'version' , version = __version__ )
171
173
subparsers = parser .add_subparsers (title = 'Commands' , dest = 'action' , description = '\n ' .join (description ))
172
174
for domain , command_description in commands .items ():
173
175
list_parser = subparsers .add_parser ('list_%ss' % domain )
You can’t perform that action at this time.
0 commit comments