Enabling short options for menuentry command
PATCH 1/1 Enabling short options for menuentry command
This tiny patch enables short command line options for the menuentry/submenu command.
Any comments?
Andreas
------------------------------------------------------------
revno: 4100
committer: Andreas Vogel <[email protected]> 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'
commands/menuentry.c +4 -4
@@ -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 } };