Makes 'ipfs files write' usage docs clearer.
A couple of notes on --truncate and --offset. License: MIT Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
Stephen Whitmore committed
Feb 24, 2016 at 13:32 UTC
4492b8c6bad54947d81c4c250c2aaab28f52d93d
1 file changed
+2
-2
core/commands/files/files.go
+2
-2
@@ -516,9 +516,9 @@ Warning:
516
cmds.FileArg("data", true, false, "Data to write.").EnableStdin(),
517
},
518
Options: []cmds.Option{
519
- cmds.IntOption("o", "offset", "Offset to write to."),
519
+ cmds.IntOption("o", "offset", "Byte offset to begin writing at."),
520
cmds.BoolOption("e", "create", "Create the file if it does not exist."),
521
- cmds.BoolOption("t", "truncate", "Truncate the file before writing."),
521
+ cmds.BoolOption("t", "truncate", "Truncate the file to size zero before writing."),
522
cmds.IntOption("n", "count", "Maximum number of bytes to read."),
523
},
524
Run: func(req cmds.Request, res cmds.Response) {