From: Brian Warner Date: Tue, 27 Jan 2009 22:39:09 +0000 (-0700) Subject: CLI: fix examples in tahoe put --help X-Git-Tag: allmydata-tahoe-1.3.0~134 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/priv.html?a=commitdiff_plain;h=1427db1c880ab4df34deadba24c8794cc2cafe91;p=tahoe-lafs%2Ftahoe-lafs.git CLI: fix examples in tahoe put --help --- diff --git a/src/allmydata/scripts/cli.py b/src/allmydata/scripts/cli.py index 7ad2e5ea..d81f9ee8 100644 --- a/src/allmydata/scripts/cli.py +++ b/src/allmydata/scripts/cli.py @@ -112,10 +112,10 @@ class PutOptions(VDriveOptions): ] def parseArgs(self, arg1=None, arg2=None): - # cat FILE > tahoe put # create unlinked file from stdin - # cat FILE > tahoe put - # same + # cat FILE | tahoe put # create unlinked file from stdin + # cat FILE | tahoe put - # same # tahoe put bar # create unlinked file from local 'bar' - # cat FILE > tahoe put - FOO # create tahoe:FOO from stdin + # cat FILE | tahoe put - FOO # create tahoe:FOO from stdin # tahoe put bar FOO # copy local 'bar' to tahoe:FOO # tahoe put bar tahoe:FOO # same @@ -144,10 +144,10 @@ class PutOptions(VDriveOptions): t = VDriveOptions.getUsage(self, width) t += """ Examples: - % cat FILE > tahoe put # create unlinked file from stdin - % cat FILE > tahoe - # same + % cat FILE | tahoe put # create unlinked file from stdin + % cat FILE | tahoe - # same % tahoe put bar # create unlinked file from local 'bar' - % cat FILE > tahoe put - FOO # create tahoe:FOO from stdin + % cat FILE | tahoe put - FOO # create tahoe:FOO from stdin % tahoe put bar FOO # copy local 'bar' to tahoe:FOO % tahoe put bar tahoe:FOO # same % tahoe put bar MUTABLE-FILE-WRITECAP # modify the mutable file in-place