We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 937f872 commit cb6134dCopy full SHA for cb6134d
1 file changed
internal/main.go
@@ -211,12 +211,14 @@ func Main() error {
211
p := &defaultPalette
212
213
flag.CommandLine.Usage = func() {
214
+ out = os.Stderr
215
if *noColor && !*forceColor {
216
p = &Palette{}
217
} else {
- out = colorable.NewColorableStdout()
218
+ out = colorable.NewColorableStderr()
219
}
220
fmt.Fprintf(out, "Usage of %s:\n", os.Args[0])
221
+ flag.CommandLine.SetOutput(out)
222
flag.CommandLine.PrintDefaults()
223
fmt.Fprintf(out, "\nLegend:\n")
224
fmt.Fprintf(out, " Type Exported Private\n")
0 commit comments