From: Marco Gerards <mgerards@xs4all.nl>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Checking parametres that are not inside an option
Date: Tue, 12 Jun 2007 19:19:09 +0200 [thread overview]
Message-ID: <87645tytte.fsf@xs4all.nl> (raw)
In-Reply-To: <466E8A1F.3090006@raulete.net> (adrian15@raulete.net's message of "Tue, 12 Jun 2007 13:57:19 +0200")
adrian15 <adrian15@raulete.net> writes:
> 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 ?
That's not possible with the current code. You would have to add such
check yourself, which should not be too hard.
--
Marco
prev parent reply other threads:[~2007-06-12 17:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 11:57 Checking parametres that are not inside an option adrian15
2007-06-12 17:19 ` Marco Gerards [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87645tytte.fsf@xs4all.nl \
--to=mgerards@xs4all.nl \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.