From: Andre Noll Date: Tue, 18 Jan 2011 20:19:18 +0000 (+0100) Subject: gui: Remove pointless error message for invalid command line options. X-Git-Tag: v0.4.6~39^2~7 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=c71f51ee5d5c2a387d0ad00d842fd390ec9944d8 gui: Remove pointless error message for invalid command line options. This error message is never printed anyway because gui_cmdline_parser() exits on errors. --- diff --git a/gui.c b/gui.c index 5b25c51b..ebddd88c 100644 --- a/gui.c +++ b/gui.c @@ -1394,10 +1394,7 @@ int main(int argc, char *argv[]) _argc = argc; _argv = argv; - if (gui_cmdline_parser(argc, argv, &conf)) { - fprintf(stderr, "parse error while reading command line\n"); - exit(EXIT_FAILURE); - } + gui_cmdline_parser(argc, argv, &conf); HANDLE_VERSION_FLAG("gui", conf); if (check_key_map_args() < 0) { fprintf(stderr, "invalid key map\n");