mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
CLI: fix synopsis for 'tahoe ls'. fixes #1839
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
This commit is contained in:
parent
a77ae772f2
commit
1ffed22651
@ -106,9 +106,14 @@ class ListOptions(VDriveOptions):
|
||||
def parseArgs(self, where=""):
|
||||
self.where = argv_to_unicode(where)
|
||||
|
||||
def getSynopsis(self):
|
||||
return "Usage: %s ls [options] [PATH]" % (self.command_name,)
|
||||
|
||||
longdesc = """
|
||||
List the contents of some portion of the grid.
|
||||
|
||||
If PATH is omitted, "tahoe:" is assumed.
|
||||
|
||||
When the -l or --long option is used, each line is shown in the
|
||||
following format:
|
||||
|
||||
|
@ -594,6 +594,10 @@ class Help(unittest.TestCase):
|
||||
self.failUnlessIn(" put [options] LOCAL_FILE REMOTE_FILE", help)
|
||||
self.failUnlessIn("% cat FILE | tahoe put", help)
|
||||
|
||||
def test_ls(self):
|
||||
help = str(cli.ListOptions())
|
||||
self.failUnlessIn(" ls [options] [PATH]", help)
|
||||
|
||||
def test_unlink(self):
|
||||
help = str(cli.UnlinkOptions())
|
||||
self.failUnlessIn(" unlink [options] REMOTE_FILE", help)
|
||||
|
Loading…
x
Reference in New Issue
Block a user