提交 e297e2da 作者: Matt Bell 提交者: Juan Batiz-Benet

core/commands: Added a 'args' command to test argument parsing

上级 4bbd5790
...@@ -74,5 +74,10 @@ Use "ipfs help <command>" for more information about a command. ...@@ -74,5 +74,10 @@ Use "ipfs help <command>" for more information about a command.
} }
}, },
}, },
"args": &cmds.Command{
Run: func(req cmds.Request, res cmds.Response) {
res.SetValue(req.Arguments())
},
},
}, },
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论