summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorClay Gerrard <clay.gerrard@gmail.com>2014-03-06 10:51:59 -0800
committerClay Gerrard <clay.gerrard@gmail.com>2014-03-06 13:01:49 -0800
commit07dd6680821a9332cd6c8bd7883129988e1bd64e (patch)
treea1d72a5de012faa77bd165dcc24f40428e62f26b /bin
parentd2f3563cde2e7dec28e1ea13c4b02b5063a4c916 (diff)
downloadpython-swiftclient-07dd6680821a9332cd6c8bd7883129988e1bd64e.tar.gz
add "info" as an alias to "capabilities"
Change-Id: Ia07554250a6aae8f3a6be6a70f83690ec3fc108c
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/swift b/bin/swift
index 323b3c6..59b9480 100755
--- a/bin/swift
+++ b/bin/swift
@@ -1186,12 +1186,14 @@ def st_upload(parser, args, thread_manager):
st_capabilities_options = "[<proxy_url>]"
+st_info_options = st_capabilities_options
st_capabilities_help = '''
Retrieve capability of the proxy
Optional positional arguments:
<proxy_url> proxy URL of the cluster to retrieve capabilities
'''
+st_info_help = st_capabilities_help
def st_capabilities(parser, args, thread_manager):
@@ -1219,6 +1221,8 @@ def st_capabilities(parser, args, thread_manager):
del capabilities['swift']
_print_compo_cap('Additional middleware', capabilities)
+st_info = st_capabilities
+
def split_headers(options, prefix='', thread_manager=None):
"""
@@ -1463,7 +1467,7 @@ Examples:
parser.enable_interspersed_args()
commands = ('delete', 'download', 'list', 'post',
- 'stat', 'upload', 'capabilities')
+ 'stat', 'upload', 'capabilities', 'info')
if not args or args[0] not in commands:
parser.print_usage()
if args: