@cryptotaxi247 / kubo / commits / d8afd9a9b

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

Matt Bell committed Oct 31, 2014 at 14:11 UTC d8afd9a9bb11cb1e60e18d740b38613543dd5308
1 file changed +1
cmd/ipfs2/main.go
+1
@@ -25,6 +25,7 @@ func main() {
25 req, root, err := cmdsCli.Parse(args, Root, commands.Root)
26 if err != nil {
27 fmt.Println(err)
28 + fmt.Println(Root.Help)
29 os.Exit(1)
30 }
31