Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1CuuYY-00060m-Km for mharc-grub-devel@gnu.org; Sat, 29 Jan 2005 10:30:38 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CuuYW-00060M-Nq for grub-devel@gnu.org; Sat, 29 Jan 2005 10:30:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CuuYV-0005zq-DK for grub-devel@gnu.org; Sat, 29 Jan 2005 10:30:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CuuYV-0005zf-5v for grub-devel@gnu.org; Sat, 29 Jan 2005 10:30:35 -0500 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CuuKj-0001qy-7X for grub-devel@gnu.org; Sat, 29 Jan 2005 10:16:21 -0500 Received: from vscan-cn.han.nl (venus.han.nl [145.74.65.6]) by mail-cn.han.nl (Postfix) with ESMTP id 549FB92ED for ; Sat, 29 Jan 2005 16:11:15 +0100 (CET) Received: from mail-cn.han.nl ([145.74.66.11]) by vscan-cn.han.nl (venus.han.nl [145.74.65.6]) (amavisd-new, port 10024) with ESMTP id 25001-03 for ; Sat, 29 Jan 2005 16:11:13 +0100 (CET) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 15291986F for ; Sat, 29 Jan 2005 16:11:13 +0100 (CET) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id D699BC046 for ; Sat, 29 Jan 2005 16:11:12 +0100 (CET) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: <87mzut3f3c.fsf@marco.marco-g.com> <200501290223.09666.okuji@enbug.org> <87ekg4s823.fsf@marco.marco-g.com> <200501291530.37761.okuji@enbug.org> From: Marco Gerards Date: Sat, 29 Jan 2005 15:11:07 +0000 In-Reply-To: <200501291530.37761.okuji@enbug.org> (Yoshinori K. Okuji's message of "Sat, 29 Jan 2005 15:30:37 +0100") Message-ID: <87acqss22c.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (2.2.0) at vscan-cn.han.nl Subject: Re: New commands (reboot, halt, help) 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: Sat, 29 Jan 2005 15:30:37 -0000 "Yoshinori K. Okuji" writes: > On Saturday 29 January 2005 14:01, Marco Gerards wrote: >> > Why do you test the flags with GRUB_COMMAND_FLAG_BOTH? >> >> Not all commands, for example `title', should be printed. > > Why? I was under the impression title was a special case. It does not even have a description. > And, do you know that GRUB_COMMAND_FLAG_BOTH is a sum of > GRUB_COMMAND_FLAG_CMDLINE and GRUB_COMMAND_FLAG_MENU? The conditional > is at least redundant. Right. What the code does is making sure GRUB_COMMAND_FLAG_CMDLINE and GRUB_COMMAND_FLAG_MENU commands and commands with both set are shown. I fail to see the redundancy. What do you propose? >> This is a two column format. The output is, for example: > [snip] > > It's not a two-column format. Try help on bash. You will see what I > mean. Right, I see. I can make this change so it works more like GRUB Legacy. Is it ok if I add a --description so it works like the patch as it is now? It's how I like it, that's why I added it this way, but if you don't like it I just remove it. Thanks, Marco