From d6fb0bf039b2a4dd0ed1d014ada048ed3f649ab5 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Wed, 6 Feb 2008 14:15:33 -0700 Subject: [PATCH] tahoe dump-share: remove --filename option, just take it from argv --- src/allmydata/scripts/debug.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/allmydata/scripts/debug.py b/src/allmydata/scripts/debug.py index 6274c7df..71060b08 100644 --- a/src/allmydata/scripts/debug.py +++ b/src/allmydata/scripts/debug.py @@ -5,17 +5,10 @@ import sys, struct, time, os from twisted.python import usage class DumpOptions(usage.Options): - optParameters = [ - ["filename", "f", None, "which file to dump"], - ] - - def parseArgs(self, filename=None): - if filename: - self['filename'] = filename + """tahoe dump-share SHARE_FILENAME""" - def postOptions(self): - if not self['filename']: - raise usage.UsageError(" parameter is required") + def parseArgs(self, filename): + self['filename'] = filename def dump_share(config, out=sys.stdout, err=sys.stderr): from allmydata import uri, storage -- 2.45.2