Also don't accept 'tahoe mkdir --format=chk'.
``tahoe webopen [PATH]``
-``tahoe put [--format=FORMAT] [FROMLOCAL|-]``
+``tahoe put [--mutable] [FROMLOCAL|-]``
-``tahoe put [--format=FORMAT] FROMLOCAL|- TOPATH``
+``tahoe put [--mutable] FROMLOCAL|- TOPATH``
``tahoe put [FROMLOCAL|-] mutable-file-writecap``
from the following path. When the source file is named "``-``", the contents
are taken from stdin.
-``tahoe put file.txt --format=SDMF``
+``tahoe put file.txt --mutable``
Create a new (SDMF) mutable file, fill it with the contents of ``file.txt``,
and print the new write-cap to stdout.
``tahoe put file.txt MUTABLE-FILE-WRITECAP``
Replace the contents of the given mutable file with the contents of
- ``file.txt`` and prints the same write-cap to stdout.
+ ``file.txt`` and print the same write-cap to stdout.
``tahoe cp file.txt tahoe:uploaded.txt``
class MakeDirectoryOptions(VDriveOptions):
optParameters = [
- ("format", None, None, "Create directory with the given format: SDMF and MDMF for mutable. (case-insensitive)"),
+ ("format", None, None, "Create a directory with the given format: SDMF or MDMF (case-insensitive)"),
]
def parseArgs(self, where=""):
self.where = argv_to_unicode(where)
if self['format']:
- if self['format'].upper() not in ("SDMF", "MDMF", "CHK"):
+ if self['format'].upper() not in ("SDMF", "MDMF"):
raise usage.UsageError("%s is an invalid format" % self['format'])
def getSynopsis(self):
class PutOptions(VDriveOptions):
optFlags = [
- ("mutable", "m", "Create a mutable file instead of an immutable one. (DEPRECATED, use --format=SDMF)"),
+ ("mutable", "m", "Create a mutable file instead of an immutable one (like --format=SDMF)"),
]
optParameters = [
- ("format", None, None, "Create file with the given format: SDMF and MDMF for mutable, CHK (default) for immutable. (case-insensitive)"),
+ ("format", None, None, "Create a file with the given format: SDMF and MDMF for mutable, CHK (default) for immutable. (case-insensitive)"),
]
def parseArgs(self, arg1=None, arg2=None):
tahoe put -d DIR FILE testgrid:old.MD5SUM
tahoe put -d DIR FILE testgrid:recent.MD5SUM
tahoe put -d DIR FILE testgrid:recentdir/recent.MD5SUM
- echo "" | tahoe put -d DIR --format=SDMF testgrid:log
- echo "" | tahoe put -d DIR --format=SDMF testgrid:recentlog
+ echo "" | tahoe put -d DIR --mutable testgrid:log
+ echo "" | tahoe put -d DIR --mutable testgrid:recentlog
This script will perform the following steps (the kind of compatibility that
is being tested is in [brackets]):
self.cli("put", "-", "testgrid:"+fn, stdin=data, ignore_stderr=True)
def put_mutable(self, fn, data):
- self.cli("put", "--format=SDMF", "-", "testgrid:"+fn,
+ self.cli("put", "--mutable", "-", "testgrid:"+fn,
stdin=data, ignore_stderr=True)
def update(self, fn):