mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-06 09:31:43 +00:00
CLI: make the synopsis for 'tahoe unlink' say unlink instead of rm.
This commit is contained in:
parent
a32f625db9
commit
b730385ec8
@ -240,6 +240,10 @@ class RmOptions(VDriveOptions):
|
|||||||
def getSynopsis(self):
|
def getSynopsis(self):
|
||||||
return "%s rm REMOTE_FILE" % (os.path.basename(sys.argv[0]),)
|
return "%s rm REMOTE_FILE" % (os.path.basename(sys.argv[0]),)
|
||||||
|
|
||||||
|
class UnlinkOptions(RmOptions):
|
||||||
|
def getSynopsis(self):
|
||||||
|
return "%s unlink REMOTE_FILE" % (os.path.basename(sys.argv[0]),)
|
||||||
|
|
||||||
class MvOptions(VDriveOptions):
|
class MvOptions(VDriveOptions):
|
||||||
def parseArgs(self, frompath, topath):
|
def parseArgs(self, frompath, topath):
|
||||||
self.from_file = argv_to_unicode(frompath)
|
self.from_file = argv_to_unicode(frompath)
|
||||||
@ -429,7 +433,7 @@ subCommands = [
|
|||||||
["put", None, PutOptions, "Upload a file into the grid."],
|
["put", None, PutOptions, "Upload a file into the grid."],
|
||||||
["cp", None, CpOptions, "Copy one or more files."],
|
["cp", None, CpOptions, "Copy one or more files."],
|
||||||
["rm", None, RmOptions, "Unlink a file or directory on the grid."],
|
["rm", None, RmOptions, "Unlink a file or directory on the grid."],
|
||||||
["unlink", None, RmOptions, "Unlink a file or directory on the grid (same as rm)."],
|
["unlink", None, UnlinkOptions, "Unlink a file or directory on the grid (same as rm)."],
|
||||||
["mv", None, MvOptions, "Move a file within the grid."],
|
["mv", None, MvOptions, "Move a file within the grid."],
|
||||||
["ln", None, LnOptions, "Make an additional link to an existing file."],
|
["ln", None, LnOptions, "Make an additional link to an existing file."],
|
||||||
["backup", None, BackupOptions, "Make target dir look like local dir."],
|
["backup", None, BackupOptions, "Make target dir look like local dir."],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user