From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Hy66w-0001Eb-4X for mharc-grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy66u-0001Dv-Cj for grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy66r-0001CA-8y for grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:35 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy66q-0001Bd-9u for grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:32 -0400 Received: from relay.udl.es ([193.144.10.29] helo=relay3.udl.es) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hy66p-0006ro-H5 for grub-devel@gnu.org; Tue, 12 Jun 2007 09:08:31 -0400 Received: from jupiter.udl.net (jupiter.udl.net [172.16.2.2]) by relay3.udl.es (8.13.7/8.13.7) with ESMTP id l5CD89m8012957 for ; Tue, 12 Jun 2007 15:08:15 +0200 Received: from [172.16.51.20] (PL-CAP020.udl.net [172.16.51.20]) by jupiter.udl.net (8.11.7p1+Sun/8.11.6) with ESMTP id l5CCxJq21523 for ; Tue, 12 Jun 2007 14:59:19 +0200 (MET DST) Message-ID: <466E8A1F.3090006@raulete.net> Date: Tue, 12 Jun 2007 13:57:19 +0200 From: adrian15 User-Agent: Thunderbird 1.5.0.8 (X11/20061107) MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (relay3.udl.es [10.69.4.19]); Tue, 12 Jun 2007 15:08:15 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/3407/Tue Jun 12 14:01:54 2007 on relay3.udl.es X-Virus-Status: Clean X-detected-kernel: Linux 2.6 (newer, 2) Subject: Checking parametres that are not inside an option 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: Tue, 12 Jun 2007 13:08:36 -0000 If you take a look at search.c you can see that the -s parametrer is checked outside the command thanks to the ARG_TYPE_STRING constant. {"set", 's', GRUB_ARG_OPTION_OPTIONAL, "set a variable to the first device found", "VAR", ARG_TYPE_STRING} If I want not to check if an argument command that it IS NOT inside an option is something (a disk, i.e.) or not... how do I do it? I mean I want something like: map (hd0) (hd1) to be checked outside the command without using: map -disk1 (hd0) -disk2 (hd1) and the correspondent option definition at map.c how do I do it ? adrian15