Skip to content

Commit 0d57bbb

Browse files
committed
Send help to stdout for zenity compatibility.
1 parent 4bcfa9c commit 0d57bbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/zenity/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ func parseFlags() []string {
307307
err := fset.Parse(os.Args[1:])
308308
if err == flag.ErrHelp {
309309
fmt.Println("usage: zenity [options...]")
310+
fset.SetOutput(os.Stdout)
310311
fset.PrintDefaults()
311312
os.Exit(0)
312313
}

0 commit comments

Comments
 (0)