mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-25 13:07:37 +00:00
cli: tahoe stats/manifest: change --verbose to --raw, since I want -v for --verify for check/deep-check/repair
This commit is contained in:
parent
d657d22c0c
commit
5c3e153d0e
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user