From ffab4002aa2fa019943a849390ad4b8a5b89b6cf Mon Sep 17 00:00:00 2001 From: Alberto Berti Date: Fri, 20 Feb 2009 18:31:06 -0700 Subject: [PATCH] Add missing synopsis and descriptions for alias commands. --- src/allmydata/scripts/cli.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 = [ -- 2.45.2