fix delete_target_file flag, add longer flag name option
This commit is contained in:
parent
602eada430
commit
9bf533fc73
1 changed files with 4 additions and 4 deletions
|
@ -1536,20 +1536,20 @@ class Daemon(AuthJSONRPCServer):
|
|||
@AuthJSONRPCServer.auth_required
|
||||
@defer.inlineCallbacks
|
||||
@AuthJSONRPCServer.flags(delete_target_file='-f', delete_all='-a')
|
||||
def jsonrpc_file_delete(self, delete_target_file=True, delete_all=False, **kwargs):
|
||||
def jsonrpc_file_delete(self, delete_target_file=False, delete_all=False, **kwargs):
|
||||
"""
|
||||
Delete a LBRY file
|
||||
|
||||
Usage:
|
||||
file_delete [-a | -f] [--sd_hash=<sd_hash>] [--file_name=<file_name>]
|
||||
file_delete [-a] [-f] [--sd_hash=<sd_hash>] [--file_name=<file_name>]
|
||||
[--stream_hash=<stream_hash>] [--claim_id=<claim_id>]
|
||||
[--outpoint=<outpoint>] [--rowid=<rowid>]
|
||||
[--name=<name>]
|
||||
|
||||
Options:
|
||||
-a : if there are multiple matching files, allow the deletion
|
||||
-a, --delete_all : if there are multiple matching files, allow the deletion
|
||||
of multiple files. Otherwise do not delete anything.
|
||||
-f : delete only from downloads, do not delete blobs
|
||||
-f, --delete_target_file : delete file from download directory, instead of just blobs
|
||||
--sd_hash=<sd_hash> : delete by file sd hash
|
||||
--file_name<file_name> : delete by file name in downloads folder
|
||||
--stream_hash=<stream_hash> : delete by file stream hash
|
||||
|
|
Loading…
Reference in a new issue