From: Andreas Vogel <Andreas.Vogel@anvo-it.de>
To: grub-devel@gnu.org
Subject: [PATCH] Enabling short options for menuentry command
Date: Sat, 03 Mar 2012 22:02:48 +0100 [thread overview]
Message-ID: <4F5286F8.4040800@anvo-it.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 110 bytes --]
This tiny patch enables short command line options for the
menuentry/submenu command.
Any comments?
Andreas
[-- Attachment #2: 03-menuentry_short_options.patch --]
[-- Type: text/plain, Size: 1166 bytes --]
------------------------------------------------------------
revno: 4100
committer: Andreas Vogel <Andreas.F.Vogel@gmail.com>
branch nick: 03-menuentry_short_options
timestamp: Thu 2012-03-01 22:42:05 +0100
message:
* grub-core/commands/menuentry.c: also provide short options
for menuentry/submenu command
diff:
=== modified file 'grub-core/commands/menuentry.c'
--- grub-core/commands/menuentry.c 2012-03-01 21:40:25 +0000
+++ grub-core/commands/menuentry.c 2012-03-01 21:42:05 +0000
@@ -35,14 +35,14 @@
static const struct grub_arg_option options[] =
{
- {"class", 1, GRUB_ARG_OPTION_REPEATABLE,
+ {"class", 'c', GRUB_ARG_OPTION_REPEATABLE,
N_("Menu entry type."), N_("STRING"), ARG_TYPE_STRING},
- {"users", 2, 0,
+ {"users", 'u', 0,
N_("List of users allowed to boot this entry."), N_("USERNAME[,USERNAME]"),
ARG_TYPE_STRING},
- {"hotkey", 3, 0,
+ {"hotkey", 'h', 0,
N_("Keyboard key to quickly boot this entry."), N_("KEYBOARD_KEY"), ARG_TYPE_STRING},
- {"source", 4, 0,
+ {"source", 's', 0,
N_("Use STRING as menu entry body."), N_("STRING"), ARG_TYPE_STRING},
{0, 0, 0, 0, 0, 0}
};
reply other threads:[~2012-03-03 21:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4F5286F8.4040800@anvo-it.de \
--to=andreas.vogel@anvo-it.de \
--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.