mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
make all helpall output go to the same file descriptor
This commit is contained in:
parent
5535515fcb
commit
19ea0d9a58
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -312,11 +312,11 @@ Used to generate documentation.
|
||||||
|
|
||||||
fmt.Fprintf(os.Stderr, "# mox %s\n\n", strings.Join(c.words, " "))
|
fmt.Fprintf(os.Stderr, "# mox %s\n\n", strings.Join(c.words, " "))
|
||||||
if c.help != "" {
|
if c.help != "" {
|
||||||
fmt.Println(c.help + "\n")
|
fmt.Fprintln(os.Stderr, c.help+"\n")
|
||||||
}
|
}
|
||||||
s := c.makeUsage()
|
s := c.makeUsage()
|
||||||
s = "\t" + strings.ReplaceAll(s, "\n", "\n\t")
|
s = "\t" + strings.ReplaceAll(s, "\n", "\n\t")
|
||||||
fmt.Println(s)
|
fmt.Fprintln(os.Stderr, s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue