Skip to content

Commit

Permalink
use os.Stderr instead of flag.CommandLine.Output
Browse files Browse the repository at this point in the history
this fixes compilation on golang 2:1.7~5 (Deian 9 stretch)
Fixes #7
  • Loading branch information
nodiscc committed May 18, 2019
1 parent 825232d commit efe1527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func brighten(r uint8, add uint8) uint8 {
func main() {
// command line parsing
flag.Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(), "Usage: %s [options] [input] [output]\n", os.Args[0])
fmt.Fprintf(flag.CommandLine.Output(), " or: %s [options] - (for stdin+stdout processing)\n", os.Args[0])
fmt.Fprintf(os.Stderr, "Usage: %s [options] [input] [output]\n", os.Args[0])
fmt.Fprintf(os.Stderr, " or: %s [options] - (for stdin+stdout processing)\n", os.Args[0])
flag.PrintDefaults()
}
magPtr := flag.Float64("mag", 7.0, "dissolve blur strength")
Expand Down

0 comments on commit efe1527

Please sign in to comment.