]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tahoe dump-share: remove --filename option, just take it from argv
authorBrian Warner <warner@allmydata.com>
Wed, 6 Feb 2008 21:15:33 +0000 (14:15 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 6 Feb 2008 21:15:33 +0000 (14:15 -0700)
src/allmydata/scripts/debug.py

index 6274c7df5af175b8aa8526c80092580b9d83b920..71060b08e19e1c1af25a9dc63011fbacf89388cd 100644 (file)
@@ -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("<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