From: Alberto Berti Date: Sat, 21 Feb 2009 01:31:06 +0000 (-0700) Subject: Add missing synopsis and descriptions for alias commands. X-Git-Tag: allmydata-tahoe-1.4.0~154 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/css?a=commitdiff_plain;h=ffab4002aa2fa019943a849390ad4b8a5b89b6cf;p=tahoe-lafs%2Ftahoe-lafs.git Add missing synopsis and descriptions for alias commands. --- diff --git a/src/allmydata/scripts/cli.py b/src/allmydata/scripts/cli.py index bec10743..dd23537e 100644 --- a/src/allmydata/scripts/cli.py +++ b/src/allmydata/scripts/cli.py @@ -58,12 +58,22 @@ class AddAliasOptions(VDriveOptions): self.alias = alias self.cap = cap + def getSynopsis(self): + return "%s add-alias ALIAS DIRCAP" % (os.path.basename(sys.argv[0]),) + + longdesc = """Add a new alias for an existing directory.""" + class CreateAliasOptions(VDriveOptions): def parseArgs(self, alias): self.alias = alias + def getSynopsis(self): + return "%s create-alias ALIAS" % (os.path.basename(sys.argv[0]),) + + longdesc = """Creates a new directory and adds an alias for it.""" + class ListAliasOptions(VDriveOptions): - pass + longdesc = """Displays a table of all configured aliases.""" class ListOptions(VDriveOptions): optFlags = [