logological / gpp

GPP, a generic preprocessor
https://logological.org/gpp
GNU Lesser General Public License v3.0
192 stars 33 forks source link

Output of -h and --version goes to stderr instead of stdout #47

Closed samueloph closed 3 years ago

samueloph commented 3 years ago

Hello,

While working on the packaging of gpp for Debian I noticed that the outputs of -h, --help and --version goes to stderr instead of stdout, which can be a little bit confusing since it's not an error message.

This affected our testing infrastructure as it thinks that an invocation with -h had issues (it checks both for exit code and for stderr messages), this is something that we can easily workaround but I believe it would be nice if it could be addressed upstream.

Thanks,

logological commented 3 years ago

Thank you for spotting this. I've committed a fix for this problem, which will take effect in the next release of GPP.

samueloph commented 3 years ago

Awesome, thank you @logological :)

leandrocunha526 commented 3 years ago

Tests were performed using Salsa CI and the problem was corrected. Thank you! :) :+1: