From c48243218742495cbb3b5fc338a32e51b8717379 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 28 Sep 2012 22:05:52 +0200 Subject: include some autoconf info stuff in help --- src/main.cpp | 17 ++++++++++++----- 1 file 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 ] [-f] [-c] " - "[-W ] [-H ] " - "[-B ] [-F ]\n" + printf("%s (v%s)\n" + "\n" + "Usage: osc-server [-h] [-p ] [-f] [-c] " + "[-W ] [-H ] " + "[-B ] [-F ]\n" "Options:\n" "\t-h Show this help\n" "\t-p Listen on port (default: %s)\n" @@ -96,13 +98,18 @@ print_help(void) "\t-W Set screen width (default: %d)\n" "\t-H Set screen height (default: %d)\n" "\t-B Set screen Bits per Pixel (default: %d)\n" - "\t-F Set framerate in Hz (default: %d)\n", + "\t-F 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 -- cgit v1.2.3