Skip to content

Commit

Permalink
set usage func for default CommandLine
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdigest committed Jun 13, 2018
1 parent 3974a8f commit 6021b1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/gounit/gounit.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ func main() {
os.Exit(2)
}

flag.CommandLine.Usage = func() {
fmt.Fprintf(os.Stderr, "Run 'gounit help' for usage.\n")
os.Exit(2)
}

flag.Parse()
args := flag.Args()

Expand Down

0 comments on commit 6021b1a

Please sign in to comment.