summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Coles <alistair.coles@hpe.com>2016-09-08 11:09:25 +0100
committerAlistair Coles <alistair.coles@hpe.com>2016-09-08 11:09:25 +0100
commitcb0cdca7aa8ccb880f0cbacaf4b0e891cb3e91d9 (patch)
tree6f80a921e8b685bbe1d4f215e40226389d61c846
parentaa88677018986f8f49208f64d660219ac6f7e8e6 (diff)
downloadpython-swiftclient-cb0cdca7aa8ccb880f0cbacaf4b0e891cb3e91d9.tar.gz
Make object option dependent on container in usage strings
In usage messages, it only makes sense to have an object option if the container option has been specified. Fixes the parentheses to indicate this. Change-Id: I550ba99879ea6ce5489617a94cec36b66be270c8 Related-Change: Ie84a90eb0278dd2cdf5775948572bb140f8d2c4b
-rwxr-xr-xswiftclient/shell.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py
index 0b96d2d..c8e43d1 100755
--- a/swiftclient/shell.py
+++ b/swiftclient/shell.py
@@ -58,7 +58,7 @@ def immediate_exit(signum, frame):
st_delete_options = '''[--all] [--leave-segments]
[--object-threads <threads>]
[--container-threads <threads>]
- [<container>] [<object>] [...]
+ [<container> [<object>] [...]]
'''
st_delete_help = '''
@@ -209,7 +209,7 @@ st_download_options = '''[--all] [--marker <marker>] [--prefix <prefix>]
[--container-threads <threads>] [--no-download]
[--skip-identical] [--remove-prefix]
[--header <header:value>] [--no-shuffle]
- [<container>] [<object>]
+ [<container> [<object>] [...]]
'''
st_download_help = '''
@@ -581,7 +581,7 @@ def st_list(parser, args, output_manager):
st_stat_options = '''[--lh]
- [<container>] [<object>]
+ [<container> [<object>]]
'''
st_stat_help = '''
@@ -655,7 +655,7 @@ def st_stat(parser, args, output_manager):
st_post_options = '''[--read-acl <acl>] [--write-acl <acl>] [--sync-to]
[--sync-key <sync-key>] [--meta <name:value>]
[--header <header>]
- [<container>] [<object>]
+ [<container> [<object>]]
'''
st_post_help = '''