From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HA2jc-0003OJ-6D for mharc-grub-devel@gnu.org; Thu, 25 Jan 2007 06:25:40 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HA2ja-0003O3-0N for grub-devel@gnu.org; Thu, 25 Jan 2007 06:25:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HA2jY-0003Nr-Pj for grub-devel@gnu.org; Thu, 25 Jan 2007 06:25:37 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HA2jY-0003No-Ln for grub-devel@gnu.org; Thu, 25 Jan 2007 06:25:36 -0500 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HA2jX-0003G0-W4 for grub-devel@gnu.org; Thu, 25 Jan 2007 06:25:36 -0500 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l0PBPYIR019951 for ; Thu, 25 Jan 2007 06:25:34 -0500 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l0PBPXP9028792 for ; Thu, 25 Jan 2007 06:25:34 -0500 Received: from [10.34.32.50] (pluto.brq.redhat.com [10.34.32.50]) by pobox.stuttgart.redhat.com (8.12.8/8.12.8) with ESMTP id l0PBPWaK001130 for ; Thu, 25 Jan 2007 12:25:32 +0100 From: Lubomir Kundrak To: The development of GRUB 2 Content-Type: text/plain Organization: Red Hat Inc. Date: Thu, 25 Jan 2007 12:25:31 +0100 Message-Id: <1169724331.3386.51.camel@pluto> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2.1 (2.8.2.1-3.fc6) Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.4-2.6 Subject: [PATCH] Making use of argp in GRUB utilities X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 11:25:38 -0000 Hi, I've noticed, that GRUB 2 uses argp in grub-emu [1], whereas other utilities use getopt_long [2]. Wouldn't it be nice to make this consistent? [1] http://www.gnu.org/software/libc/manual/html_node/Argp.html [2] http://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Options.html I find the "GNU way," argp, approach more elegant, as demonstrated by a patch to util/i386/pc/grub-mkimage.c. Seeing a patch with more minuses than pluses is a good sign, indeed. The main argument against agrp framework could be, that non-GNU C libraries do not contain with it. There's a standalone libargp package [3] that is available for package systems of all major operating systems, including NetBSD and FreeBSD, so the only disadvantage is addding a dependency there. [3] http://www.lysator.liu.se/~nisse/misc/ Regards, -- Lubomir Kundrak (Red Hat Security Response Team)