Received: from eggs.gnu.org ([140.186.70.92]:44092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRtjJ-00050a-Br for qemu-devel@nongnu.org; Wed, 01 Jun 2011 18:17:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRtjH-0001jf-Im for qemu-devel@nongnu.org; Wed, 01 Jun 2011 18:17:32 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:52980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRtjG-0001ih-VY for qemu-devel@nongnu.org; Wed, 01 Jun 2011 18:17:31 -0400 Message-Id: <63048C38-FF86-4F98-80F2-21E6E166C8AF@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <1306707770-14632-3-git-send-email-cerbere@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Thu, 2 Jun 2011 00:16:34 +0200 References: <1306707770-14632-1-git-send-email-cerbere@gmail.com> <1306707770-14632-3-git-send-email-cerbere@gmail.com> Sender: andreas.faerber@web.de Subject: Re: [Qemu-devel] [PATCH V2 2/3] Cocoa: avoid displaying window when command-line contains '-h' or '-help' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre Raymond Cc: qemu-devel@nongnu.org Am 30.05.2011 um 00:22 schrieb 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 Thanks, applied to the cocoa branch. > --- > 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] == '-') { > opt++; > } > - if (!strcmp(opt, "-vnc") || > + if (!strcmp(opt, "-h") || !strcmp(opt, "-help") || > + !strcmp(opt, "-vnc") || > !strcmp(opt, "-nographic") || > !strcmp(opt, "-version") || > !strcmp(opt, "-curses")) { > -- > 1.7.5