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