diff --git a/cmd/digraph/digraph.go b/cmd/digraph/digraph.go index 8ce0e4091c..8ef2e45ef1 100644 --- a/cmd/digraph/digraph.go +++ b/cmd/digraph/digraph.go @@ -89,11 +89,12 @@ Example usage: ` func main() { + flag.Usage = func() { fmt.Fprintln(os.Stderr, Usage) } flag.Parse() args := flag.Args() if len(args) == 0 { - fmt.Println(Usage) + fmt.Fprintln(os.Stderr, Usage) return }