Cocoa: avoid displaying window when command-line contains '-h' or '-help'

There was already a check in place to avoid displaying a window
in certain modes such as vnc, nographic or curses.

Add a check for '-h' and '-help' to avoid displaying a window for a split-
second before showing the usage information.

Signed-off-by: Alexandre Raymond <cerbere@gmail.com>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
This commit is contained in:
Alexandre Raymond 2011-05-29 18:22:49 -04:00 committed by Andreas Färber
parent d9cbb0f3ed
commit 9851484f3d

View File

@ -872,7 +872,8 @@ int main (int argc, const char * argv[]) {
if (opt[1] == '-') { if (opt[1] == '-') {
opt++; opt++;
} }
if (!strcmp(opt, "-vnc") || if (!strcmp(opt, "-h") || !strcmp(opt, "-help") ||
!strcmp(opt, "-vnc") ||
!strcmp(opt, "-nographic") || !strcmp(opt, "-nographic") ||
!strcmp(opt, "-version") || !strcmp(opt, "-version") ||
!strcmp(opt, "-curses")) { !strcmp(opt, "-curses")) {