cli: tahoe stats/manifest: change --verbose to --raw, since I want -v for --verify for check/deep-check/repair

This commit is contained in:
Brian Warner 2008-11-18 18:36:08 -07:00
parent d657d22c0c
commit 5c3e153d0e
3 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@ class ManifestOptions(VDriveOptions):
class StatsOptions(VDriveOptions):
optFlags = [
("verbose", "v", "Display raw JSON data instead of parsed"),
("raw", "r", "Display raw JSON data instead of parsed"),
]
def parseArgs(self, where=''):
self.where = where

View File

@ -67,7 +67,7 @@ class SlowOperationRunner:
data = simplejson.loads(jdata)
if not data["finished"]:
return False
if self.options.get("verbose"):
if self.options.get("raw"):
print >>stdout, jdata
return True
self.write_results(data)

View File

@ -2449,7 +2449,7 @@ class DeepCheckWebGood(DeepCheckBase, unittest.TestCase):
d.addCallback(lambda res:
self._run_cli(["stats",
"--node-directory", basedir,
"--verbose",
"--raw",
self.root_uri]))
def _check4((out,err)):
data = simplejson.loads(out)