All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enabling short options for menuentry command
@ 2012-03-03 21:02 Andreas Vogel
  0 siblings, 0 replies; only message in thread
From: Andreas Vogel @ 2012-03-03 21:02 UTC (permalink / raw)
  To: grub-devel

[-- 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}
   };

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-03 21:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-03 21:02 [PATCH] Enabling short options for menuentry command Andreas Vogel

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.