Send help to stdout for zenity compatibility.

This commit is contained in:
Nuno Cruces 2024-01-24 10:10:15 +00:00
parent 4bcfa9cc64
commit 0d57bbbde8

View file

@ -307,6 +307,7 @@ func parseFlags() []string {
err := fset.Parse(os.Args[1:])
if err == flag.ErrHelp {
fmt.Println("usage: zenity [options...]")
fset.SetOutput(os.Stdout)
fset.PrintDefaults()
os.Exit(0)
}