From: Alexandre Raymond Date: Sun, 29 May 2011 22:22:49 +0000 (-0400) Subject: Cocoa: avoid displaying window when command-line contains '-h' or '-help' X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~5680^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9851484f3d4afea83b46cc0974758ab756edfacd;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: Andreas Färber --- diff --git a/ui/cocoa.m b/ui/cocoa.m index 1ff1ac6..e1312d3 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")) {