Skip to content

Commit

Permalink
traymonitor: compile fix for usage message
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens authored and Marco van Wieringen committed May 28, 2015
1 parent 9998d54 commit 652de0b
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/qt-tray-monitor/tray-monitor.cpp
Expand Up @@ -46,7 +46,6 @@ static QApplication* app = NULL;

static void usage()
{
#if HAVE_WIN32
QString out;

out = out.sprintf(_(PROG_COPYRIGHT
Expand All @@ -62,20 +61,10 @@ static void usage()
"\n"),
2004, VERSION, BDATE, HOST_OS, DISTNAME, DISTVER);

#if HAVE_WIN32
QMessageBox::information(0, "Help", out);
#else
fprintf(stderr,_(PROG_COPYRIGHT
"\nVersion: %s (%s) %s %s %s\n\n"
"Usage: tray-monitor [-c config_file] [-d debug_level]\n"
" -c <file> set configuration file to file\n"
" -d <nn> set debug level to <nn>\n"
" -dt print timestamp in debug output\n"
" -t test - read configuration and exit\n"
" -xc print configuration and exit\n"
" -xs print configuration file schema in JSON format and exit\n"
" -? print this message.\n"
"\n"),
2004, VERSION, BDATE, HOST_OS, DISTNAME, DISTVER);
fprintf(stderr, "%s", out.toUtf8().data());
#endif
}

Expand Down

0 comments on commit 652de0b

Please sign in to comment.