Open eriksjolund opened 1 year ago
Hi, this is the behaviour of https://github.com/urfave/cli. In fact it's more or less standard in Go (check go -h
:)), but I agree that printing to stdout would be better. So maybe I'll try to change it
Yes, you are right, go -h
prints to stderr
$ rpm -qf /usr/bin/go
golang-bin-1.19.3-2.fc37.x86_64
$ /usr/bin/go -h 2> /dev/null
$
I noticed another thing. Geesefs complains about the number of arguments when running geesefs --help
.
$ geesefs --help 2>&1 | head -1
Error: geesefs takes exactly two arguments.
Describe the results you received:
Describe the results you expected:
I would have expected to see the help text written to stdout and the exit value to be zero.
Extra information: