mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
tahoe dump-share: remove --filename option, just take it from argv
This commit is contained in:
parent
4d4073fb16
commit
d6fb0bf039
@ -5,18 +5,11 @@ import sys, struct, time, os
|
|||||||
from twisted.python import usage
|
from twisted.python import usage
|
||||||
|
|
||||||
class DumpOptions(usage.Options):
|
class DumpOptions(usage.Options):
|
||||||
optParameters = [
|
"""tahoe dump-share SHARE_FILENAME"""
|
||||||
["filename", "f", None, "which file to dump"],
|
|
||||||
]
|
|
||||||
|
|
||||||
def parseArgs(self, filename=None):
|
def parseArgs(self, filename):
|
||||||
if filename:
|
|
||||||
self['filename'] = 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):
|
def dump_share(config, out=sys.stdout, err=sys.stderr):
|
||||||
from allmydata import uri, storage
|
from allmydata import uri, storage
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user