Address Kevan's comment in #776 about Options classes missed when adding 'self.command_name'. refs #776, #1359

This commit is contained in:
david-sarah 2011-08-01 15:13:17 -07:00
parent 9ba8a1b83e
commit 2da3f69f25
3 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ class CpOptions(VDriveOptions):
self.destination = argv_to_unicode(args[-1])
def getSynopsis(self):
return "Usage: tahoe cp [options] FROM.. TO"
return "Usage: %s cp [options] FROM.. TO" % (self.command_name,)
longdesc = """
Use 'tahoe cp' to copy files between a local filesystem and a Tahoe grid.

View File

@ -12,7 +12,7 @@ class CreateKeyGeneratorOptions(BasedirMixin, BaseOptions):
]
def getSynopsis(self):
return "Usage: %s create-key-generator [options] NODEDIR" % (os.path.basename(sys.argv[0]),)
return "Usage: %s create-key-generator [options] NODEDIR" % (self.command_name,)
keygen_tac = """

View File

@ -12,7 +12,7 @@ class CreateStatsGathererOptions(BasedirMixin, BaseOptions):
]
def getSynopsis(self):
return "Usage: %s create-stats-gatherer [options] NODEDIR" % (os.path.basename(sys.argv[0]),)
return "Usage: %s create-stats-gatherer [options] NODEDIR" % (self.command_name,)
stats_gatherer_tac = """