diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6119fe5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +godep diff --git a/main.go b/main.go index b72a607..3bd421a 100644 --- a/main.go +++ b/main.go @@ -73,7 +73,7 @@ func main() { for _, cmd := range commands { if cmd.Name() == args[0] { - cmd.Flag.Usage = cmd.UsageExit + cmd.Flag.Usage = func() { cmd.UsageExit() } cmd.Flag.Parse(args[1:]) cmd.Run(cmd, cmd.Flag.Args()) return