From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWIKe-00086Y-C4 for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWIKY-0003f3-LR for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:15 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:59340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWIKY-0003ez-E8 for qemu-devel@nongnu.org; Mon, 13 Jun 2011 21:22:10 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 14 Jun 2011 03:22:00 +0200 Message-Id: <1308014527-60251-4-git-send-email-andreas.faerber@web.de> In-Reply-To: <1308014527-60251-3-git-send-email-andreas.faerber@web.de> References: <1308014527-60251-1-git-send-email-andreas.faerber@web.de> <1308014527-60251-2-git-send-email-andreas.faerber@web.de> <1308014527-60251-3-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: andreas.faerber@web.de Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 03/10] Cocoa: avoid displaying window when command-line contains '-h' or '-help' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexandre Raymond , =?UTF-8?q?Andreas=20F=C3=A4rber?= From: Alexandre Raymond 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=C3=A4rber --- ui/cocoa.m | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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] =3D=3D '-') { opt++; } - if (!strcmp(opt, "-vnc") || + if (!strcmp(opt, "-h") || !strcmp(opt, "-help") || + !strcmp(opt, "-vnc") || !strcmp(opt, "-nographic") || !strcmp(opt, "-version") || !strcmp(opt, "-curses")) { --=20 1.7.5.3