Expose --prefix as an option for st_delete

The SwiftService and shell support the ability to limit
deletions to only those objects that match a specified
prefix, so let's expose that (really useful) behaviour
in the command line help as well :)

Change-Id: I9ef177aa96e4829196b5200dd8e9d0d2f7f89b63
This commit is contained in:
Joel Wright 2017-02-23 11:00:09 +00:00
parent 307d4c007a
commit 91de5e8a38
1 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,7 @@ st_delete_options = '''[--all] [--leave-segments]
[--object-threads <threads>]
[--container-threads <threads>]
[--header <header:value>]
[--prefix <prefix>]
[<container> [<object>] [...]]
'''
@ -82,6 +83,7 @@ Optional arguments:
--container-threads <threads>
Number of threads to use for deleting containers.
Default is 10.
--prefix <prefix> Only delete objects beginning with <prefix>.
'''.strip("\n")
@ -91,7 +93,7 @@ def st_delete(parser, args, output_manager):
default=False, help='Delete all containers and objects.')
parser.add_argument(
'-p', '--prefix', dest='prefix',
help='Only delete items beginning with the <prefix>.')
help='Only delete items beginning with <prefix>.')
parser.add_argument(
'-H', '--header', action='append', dest='header',
default=[],