1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 15:42:21 +08:00

Edited object patch set-data doc

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
This commit is contained in:
Richard Littauer
2016-03-15 15:04:26 -04:00
committed by Jeromy
parent 600c95eb53
commit 568e5087e1

View File

@ -110,7 +110,7 @@ the limit will not be respected by the network.
var patchSetDataCmd = &cmds.Command{ var patchSetDataCmd = &cmds.Command{
Helptext: cmds.HelpText{ Helptext: cmds.HelpText{
Tagline: "Set data field of an ipfs object.", Tagline: "Set the data field of an ipfs object.",
ShortDescription: ` ShortDescription: `
Set the data of an ipfs object from stdin or with the contents of a file. Set the data of an ipfs object from stdin or with the contents of a file.
@ -121,7 +121,7 @@ Example:
}, },
Arguments: []cmds.Argument{ Arguments: []cmds.Argument{
cmds.StringArg("root", true, false, "The hash of the node to modify."), cmds.StringArg("root", true, false, "The hash of the node to modify."),
cmds.FileArg("data", true, false, "Data fill with.").EnableStdin(), cmds.FileArg("data", true, false, "The data to set the object to.").EnableStdin(),
}, },
Run: func(req cmds.Request, res cmds.Response) { Run: func(req cmds.Request, res cmds.Response) {
nd, err := req.InvocContext().GetNode() nd, err := req.InvocContext().GetNode()