tahoe dump-share: remove --filename option, just take it from argv

This commit is contained in:
Brian Warner 2008-02-06 14:15:33 -07:00
parent 4d4073fb16
commit d6fb0bf039

View File

@ -5,18 +5,11 @@ import sys, struct, time, os
from twisted.python import usage
class DumpOptions(usage.Options):
optParameters = [
["filename", "f", None, "which file to dump"],
]
"""tahoe dump-share SHARE_FILENAME"""
def parseArgs(self, filename=None):
if filename:
def parseArgs(self, filename):
self['filename'] = filename
def postOptions(self):
if not self['filename']:
raise usage.UsageError("<filename> parameter is required")
def dump_share(config, out=sys.stdout, err=sys.stderr):
from allmydata import uri, storage