Commit d8afd9a9 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

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

parent 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 is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment