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:
parent
307d4c007a
commit
91de5e8a38
@ -59,6 +59,7 @@ st_delete_options = '''[--all] [--leave-segments]
|
|||||||
[--object-threads <threads>]
|
[--object-threads <threads>]
|
||||||
[--container-threads <threads>]
|
[--container-threads <threads>]
|
||||||
[--header <header:value>]
|
[--header <header:value>]
|
||||||
|
[--prefix <prefix>]
|
||||||
[<container> [<object>] [...]]
|
[<container> [<object>] [...]]
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@ -82,6 +83,7 @@ Optional arguments:
|
|||||||
--container-threads <threads>
|
--container-threads <threads>
|
||||||
Number of threads to use for deleting containers.
|
Number of threads to use for deleting containers.
|
||||||
Default is 10.
|
Default is 10.
|
||||||
|
--prefix <prefix> Only delete objects beginning with <prefix>.
|
||||||
'''.strip("\n")
|
'''.strip("\n")
|
||||||
|
|
||||||
|
|
||||||
@ -91,7 +93,7 @@ def st_delete(parser, args, output_manager):
|
|||||||
default=False, help='Delete all containers and objects.')
|
default=False, help='Delete all containers and objects.')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-p', '--prefix', dest='prefix',
|
'-p', '--prefix', dest='prefix',
|
||||||
help='Only delete items beginning with the <prefix>.')
|
help='Only delete items beginning with <prefix>.')
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-H', '--header', action='append', dest='header',
|
'-H', '--header', action='append', dest='header',
|
||||||
default=[],
|
default=[],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user