aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-28 22:05:52 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-28 22:05:52 +0200
commitc48243218742495cbb3b5fc338a32e51b8717379 (patch)
tree16e6e1b904544249f42e61fc6d1468153ccd8c67
parent4da30b1131a569109940d64d8f0e51152b17dc75 (diff)
downloadosc-graphics-c48243218742495cbb3b5fc338a32e51b8717379.tar.gz
include some autoconf info stuff in help
-rw-r--r--src/main.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index aef57a1..c933a10 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -85,9 +85,11 @@ sdl_process_events(void)
static void
print_help(void)
{
- printf("osc-server [-h] [-p <port>] [-f] [-c] "
- "[-W <width>] [-H <height>] "
- "[-B <bpp>] [-F <framerate>]\n"
+ printf("%s (v%s)\n"
+ "\n"
+ "Usage: osc-server [-h] [-p <port>] [-f] [-c] "
+ "[-W <width>] [-H <height>] "
+ "[-B <bpp>] [-F <framerate>]\n"
"Options:\n"
"\t-h Show this help\n"
"\t-p <port> Listen on port <port> (default: %s)\n"
@@ -96,13 +98,18 @@ print_help(void)
"\t-W <width> Set screen width (default: %d)\n"
"\t-H <height> Set screen height (default: %d)\n"
"\t-B <bpp> Set screen Bits per Pixel (default: %d)\n"
- "\t-F <framerate> Set framerate in Hz (default: %d)\n",
+ "\t-F <framerate> Set framerate in Hz (default: %d)\n"
+ "\n"
+ "Homepage: <%s>\n"
+ "E-Mail: <%s>\n",
+ PACKAGE_NAME, PACKAGE_VERSION,
DEFAULT_PORT,
BOOL2STR(DEFAULT_SDL_FLAGS & SDL_FULLSCREEN),
BOOL2STR(DEFAULT_SHOW_CURSOR),
DEFAULT_SCREEN_WIDTH, DEFAULT_SCREEN_HEIGHT,
DEFAULT_SCREEN_BPP,
- DEFAULT_FRAMERATE);
+ DEFAULT_FRAMERATE,
+ PACKAGE_URL, PACKAGE_BUGREPORT);
}
static inline void