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

cmd/ipfs: Show usage text if input fails to parse

上级 cac8844b
......@@ -25,6 +25,7 @@ func main() {
req, root, err := cmdsCli.Parse(args, Root, commands.Root)
if err != nil {
fmt.Println(err)
fmt.Println(Root.Help)
os.Exit(1)
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论