提交 e99066a1 作者: Jeromy Johnson

Merge pull request #2475 from ipfs/feature/object-patch-set-data-docs

Edited object patch set-data doc
...@@ -110,7 +110,7 @@ the limit will not be respected by the network. ...@@ -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: ...@@ -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()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论