Cocoa: avoid displaying window when command-line contains '-h' or '-help'
commit9851484f3d4afea83b46cc0974758ab756edfacd
authorAlexandre Raymond <cerbere@gmail.com>
Sun, 29 May 2011 22:22:49 +0000 (29 18:22 -0400)
committerAndreas Färber <andreas.faerber@web.de>
Tue, 14 Jun 2011 01:08:57 +0000 (14 03:08 +0200)
tree3dea4bfda14c270be6fa3afe3072841b441c21b3
parentd9cbb0f3ed0e3a185a61a18de856d51cf7789bf5
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>
ui/cocoa.m