Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
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:
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)