From: Brian Warner Date: Wed, 6 Feb 2008 21:15:33 +0000 (-0700) Subject: tahoe dump-share: remove --filename option, just take it from argv X-Git-Tag: allmydata-tahoe-0.8.0~122 X-Git-Url: https://git.rkrishnan.org/pf/content/frontends/webapi.rst?a=commitdiff_plain;h=d6fb0bf039b2a4dd0ed1d014ada048ed3f649ab5;p=tahoe-lafs%2Ftahoe-lafs.git tahoe dump-share: remove --filename option, just take it from argv --- 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