From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Wb2MY-0002tY-Rg for mharc-qemu-trivial@gnu.org; Fri, 18 Apr 2014 02:33:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb2MQ-0002jL-LT for qemu-trivial@nongnu.org; Fri, 18 Apr 2014 02:33:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wb2MK-0006KJ-B0 for qemu-trivial@nongnu.org; Fri, 18 Apr 2014 02:33:18 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:37353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wb2M7-0006Iv-Qc; Fri, 18 Apr 2014 02:32:59 -0400 Received: from [192.168.88.2] (mjt.vpn.tls.msk.ru [192.168.177.99]) by isrv.corpit.ru (Postfix) with ESMTP id 921A441D08; Fri, 18 Apr 2014 10:32:50 +0400 (MSK) Message-ID: <5350C712.90201@msgid.tls.msk.ru> Date: Fri, 18 Apr 2014 10:32:50 +0400 From: Michael Tokarev Organization: Telecom Service, JSC User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Fam Zheng References: <1397802352-27814-1-git-send-email-famz@redhat.com> In-Reply-To: <1397802352-27814-1-git-send-email-famz@redhat.com> X-Enigmail-Version: 1.5.1 OpenPGP: id=804465C5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org Subject: Re: [Qemu-trivial] [PATCH] configure: Exit with code 0 with --help X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2014 06:33:24 -0000 18.04.2014 10:25, Fam Zheng wrote: > There are two paths to show help and exit, one is with "-h" or "--help", > one is with invalid options. > > Only "exit 1" with the latter case. I'd rather put `exit 1' right in invalid option case, instead of jumping to help. Because help output is huge, and it is often difficult to see the error message. At max, at the error case, the script can output something like, `for a list of valid options, run $0 --help'. Here and for qemu-img case. Do you not agree? Thanks, /mjt