Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

Commit

Permalink
go1.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Oct 4, 2013
1 parent e9b1c16 commit ed93197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed93197

Please sign in to comment.