diff options
author | Clay Gerrard <clay.gerrard@gmail.com> | 2014-03-06 10:51:59 -0800 |
---|---|---|
committer | Clay Gerrard <clay.gerrard@gmail.com> | 2014-03-06 13:01:49 -0800 |
commit | 07dd6680821a9332cd6c8bd7883129988e1bd64e (patch) | |
tree | a1d72a5de012faa77bd165dcc24f40428e62f26b /bin | |
parent | d2f3563cde2e7dec28e1ea13c4b02b5063a4c916 (diff) | |
download | python-swiftclient-07dd6680821a9332cd6c8bd7883129988e1bd64e.tar.gz |
add "info" as an alias to "capabilities"
Change-Id: Ia07554250a6aae8f3a6be6a70f83690ec3fc108c
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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: |