Send help to stdout for zenity compatibility.
This commit is contained in:
parent
4bcfa9cc64
commit
0d57bbbde8
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue