Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Nw0dO-00047d-Bp for mharc-grub-devel@gnu.org; Sun, 28 Mar 2010 18:07:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nw0dM-00046A-1E for grub-devel@gnu.org; Sun, 28 Mar 2010 18:07:04 -0400 Received: from [140.186.70.92] (port=53131 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nw0dK-00044W-3k for grub-devel@gnu.org; Sun, 28 Mar 2010 18:07:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nw0dI-0006s1-BB for grub-devel@gnu.org; Sun, 28 Mar 2010 18:07:01 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:47044) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nw0dI-0006rf-6W for grub-devel@gnu.org; Sun, 28 Mar 2010 18:07:00 -0400 X-Originating-IP: 217.70.178.42 Received: from mfilter2-d.gandi.net (mfilter2-d.gandi.net [217.70.178.42]) by relay1-d.mail.gandi.net (Postfix) with ESMTP id CEE3A2552FA for ; Mon, 29 Mar 2010 00:06:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter2-d.gandi.net Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by mfilter2-d.gandi.net (mfilter2-d.gandi.net [217.70.178.42]) (amavisd-new, port 10024) with ESMTP id t4IACCunOumT for ; Mon, 29 Mar 2010 00:06:54 +0200 (CEST) X-Originating-IP: 80.32.81.197 Received: from mail.pina.cat (197.Red-80-32-81.staticIP.rima-tde.net [80.32.81.197]) (Authenticated sender: pina@pina.cat) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 7F63C2552F8 for ; Mon, 29 Mar 2010 00:06:54 +0200 (CEST) Received: from pinux (cpc2-hari6-0-0-cust86.hari.cable.virginmedia.com [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTPA id 53A9C288F3019 for ; Mon, 29 Mar 2010 00:06:53 +0200 (CEST) Received: from pinux (localhost.localdomain [127.0.0.1]) by pinux (Postfix) with ESMTP id 88983723BB for ; Sun, 28 Mar 2010 23:06:52 +0100 (BST) Received: by pinux (Postfix, from userid 1000) id 3CABD87F891; Sun, 28 Mar 2010 23:05:52 +0100 (BST) Date: Sun, 28 Mar 2010 23:05:52 +0100 From: Carles Pina i Estany To: The development of GNU GRUB Message-ID: <20100328220552.GA17773@pina.cat> References: <20100319235656.GA1677@pina.cat> <4BACDA08.4050503@gmail.com> <20100327005416.GA14529@pina.cat> <20100327112954.GA2376@nubol.oskuro.net> <20100327214237.GA19079@pina.cat> <4BAF5031.7050807@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BAF5031.7050807@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: gettext util X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2010 22:07:04 -0000 Hello, On Mar/28/2010, Vladimir '??-coder/phcoder' Serbinenko wrote: > Carles Pina i Estany wrote: > > b) Makes the alignment more difficult > > > Why not just do like > > " -h, --help %s\n" > " -V, --version %s\n" > " -v, --verbose %s\n", _("display this message and exit"), _ ("print version information and exit"), _("print verbose messages") My reasons for argp: a) if someone/something else can take care of counting how many spaces before the short options, to write the "," and space and the long option, etc. then is something that we don't need to think and do. Good for consistency between Grub programs and other utilities b) to not have some presentation things in Grub code (spaces, tabs, etc.) (main one:) c) using above way is very easy to do mistakes and swap the description and the command of some option, let's say, updating things OR options that depends of the platform/compiler options. It needs two ifdef in two places instead of only one in argp and more clear, since the argp structure is like: /* The options we understand. */ static struct argp_option options[] = { {"verbose", 'v', 0, 0, "Produce verbose output" }, {"quiet", 'q', 0, 0, "Don't produce any output" }, All my reasons are valid if the implementation in Grub doesn't have special problems, else I would re-consider... Probably I'm forgetting some more positive things and missing some negative ones. Cheers, -- Carles Pina i Estany http://pinux.info