Skip to content

Commit

Permalink
Merge pull request #8 from nodiscc/os-stderr
Browse files Browse the repository at this point in the history
use os.Stderr instead of flag.CommandLine.Output
  • Loading branch information
r00tman authored May 18, 2019
2 parents 825232d + efe1527 commit 0ddcd9b
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 0ddcd9b

Please sign in to comment.