mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
tahoe dump-share: remove --filename option, just take it from argv
This commit is contained in:
parent
4d4073fb16
commit
d6fb0bf039
@ -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"],
|
||||
]
|
||||
"""tahoe dump-share SHARE_FILENAME"""
|
||||
|
||||
def parseArgs(self, filename=None):
|
||||
if filename:
|
||||
self['filename'] = filename
|
||||
|
||||
def postOptions(self):
|
||||
if not self['filename']:
|
||||
raise usage.UsageError("<filename> 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
|
||||
|
Loading…
Reference in New Issue
Block a user