From: david-sarah Date: Tue, 3 Aug 2010 08:53:59 +0000 (-0700) Subject: CLI: make the synopsis for 'tahoe unlink' say unlink instead of rm. X-Git-Tag: allmydata-tahoe-1.8.0b2~35 X-Git-Url: https://git.rkrishnan.org/listings/reedownlee?a=commitdiff_plain;h=b730385ec846cd9cdabd24f15d541c2e46e63a87;p=tahoe-lafs%2Ftahoe-lafs.git CLI: make the synopsis for 'tahoe unlink' say unlink instead of rm. --- diff --git a/src/allmydata/scripts/cli.py b/src/allmydata/scripts/cli.py index 55471669..1c01fe4d 100644 --- a/src/allmydata/scripts/cli.py +++ b/src/allmydata/scripts/cli.py @@ -240,6 +240,10 @@ class RmOptions(VDriveOptions): def getSynopsis(self): 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): def parseArgs(self, frompath, topath): self.from_file = argv_to_unicode(frompath) @@ -429,7 +433,7 @@ subCommands = [ ["put", None, PutOptions, "Upload a file into the grid."], ["cp", None, CpOptions, "Copy one or more files."], ["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."], ["ln", None, LnOptions, "Make an additional link to an existing file."], ["backup", None, BackupOptions, "Make target dir look like local dir."],