Thanks R. Diez <redacted> for the patch!
This is not a feasible practice for CLI tools where the output might
be piped into other tools (and you don't want to pipe help messages or
other non-data). However, for the PulseView GUI this is acceptable since
it's not meant to be used that way.
void usage()
{
- fprintf(stderr,
+ fprintf(stdout,
"Usage:\n"
" %s — %s\n"
"\n"
switch (c) {
case 'V':
// Print version info
- fprintf(stderr, "%s %s\n", PV_TITLE, PV_VERSION_STRING);
+ fprintf(stdout, "%s %s\n", PV_TITLE, PV_VERSION_STRING);
return 0;
case 'h':