diff options
author | Alexandre Raymond <cerbere@gmail.com> | 2011-05-29 18:22:49 -0400 |
---|---|---|
committer | Andreas Färber <andreas.faerber@web.de> | 2011-06-14 03:08:57 +0200 |
commit | 9851484f3d4afea83b46cc0974758ab756edfacd (patch) | |
tree | 3dea4bfda14c270be6fa3afe3072841b441c21b3 /ui | |
parent | d9cbb0f3ed0e3a185a61a18de856d51cf7789bf5 (diff) |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/cocoa.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m index 1ff1ac641..e1312d347 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -872,7 +872,8 @@ int main (int argc, const char * argv[]) { if (opt[1] == '-') { opt++; } - if (!strcmp(opt, "-vnc") || + if (!strcmp(opt, "-h") || !strcmp(opt, "-help") || + !strcmp(opt, "-vnc") || !strcmp(opt, "-nographic") || !strcmp(opt, "-version") || !strcmp(opt, "-curses")) { |