From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S3w6k-0002US-Ke for mharc-grub-devel@gnu.org; Sat, 03 Mar 2012 16:03:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3w6i-0002UG-9L for grub-devel@gnu.org; Sat, 03 Mar 2012 16:03:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3w6g-0004dW-In for grub-devel@gnu.org; Sat, 03 Mar 2012 16:03:11 -0500 Received: from wp191.webpack.hosteurope.de ([80.237.132.198]:42941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3w6g-0004dC-Ab for grub-devel@gnu.org; Sat, 03 Mar 2012 16:03:10 -0500 Received: from p54ba694b.dip.t-dialin.net ([84.186.105.75] helo=neptun.omega.ssw.de); authenticated by wp191.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1S3w6e-00060D-Hp; Sat, 03 Mar 2012 22:03:08 +0100 Received: from localhost (localhost [127.0.0.1]) by neptun.omega.ssw.de (Postfix) with ESMTP id D3D8EE180A8 for ; Sat, 3 Mar 2012 22:03:07 +0100 (CET) X-Virus-Scanned: amavisd-new at omega.ssw.de Received: from neptun.omega.ssw.de ([127.0.0.1]) by localhost (neptun.omega.ssw.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id spWEjQ7c+z5n for ; Sat, 3 Mar 2012 22:02:56 +0100 (CET) Received: from [192.168.3.102] (ANVOIT-2.fritz.box [192.168.2.21]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by neptun.omega.ssw.de (Postfix) with ESMTP id 72222E180A7 for ; Sat, 3 Mar 2012 22:02:55 +0100 (CET) Message-ID: <4F5286F8.4040800@anvo-it.de> Date: Sat, 03 Mar 2012 22:02:48 +0100 From: Andreas Vogel User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: [PATCH] Enabling short options for menuentry command Content-Type: multipart/mixed; boundary="------------000106000906030202070303" X-bounce-key: webpack.hosteurope.de; andreas.vogel@anvo-it.de; 1330808590; 48e8895f; X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.237.132.198 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2012 21:03:13 -0000 This is a multi-part message in MIME format. --------------000106000906030202070303 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit This tiny patch enables short command line options for the menuentry/submenu command. Any comments? Andreas --------------000106000906030202070303 Content-Type: text/plain; name="03-menuentry_short_options.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="03-menuentry_short_options.patch" ------------------------------------------------------------ revno: 4100 committer: Andreas Vogel 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} }; --------------000106000906030202070303--