提交 4765a1d6 作者: Matt Bell 提交者: Juan Batiz-Benet

core/commands2: Made 'cat' require object argument

上级 83cda2e6
......@@ -11,11 +11,11 @@ import (
var catCmd = &cmds.Command{
Arguments: []cmds.Argument{
cmds.Argument{"object", cmds.ArgString, false, true},
cmds.Argument{"object", cmds.ArgString, true, true},
},
Help: `ipfs cat <ipfs-path> - Show ipfs object data.
Help: `ipfs cat <object> - Show ipfs object data.
Retrieves the object named by <ipfs-path> and displays the Data
Retrieves the object named by <object> and outputs the data
it contains.
`,
Run: func(res cmds.Response, req cmds.Request) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论