/* help.c - command to show a help text. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2005,2007,2008,2009 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
GRUB_MOD_LICENSE ("GPLv3+");
static grub_err_t
char **args)
{
int cnt = 0;
char *currarg;
if (argc == 0)
{
{
{
char *command_help;
if (!command_help)
break;
{
unsigned stringwidth;
stringwidth = 0;
while (unicode_last_screen_position < unicode_last_position &&
{
&glyph);
}
unicode_last_screen_position, 0, 0, term);
if (!(cnt % 2))
- stringwidth);
}
if (cnt % 2)
grub_printf ("\n");
cnt++;
}
}
if (!(cnt % 2))
grub_printf ("\n");
}
else
{
int i;
for (i = 0; i < argc; i++)
{
{
{
{
if (cnt++ > 0)
grub_printf ("\n\n");
else
_(cmd->description));
}
}
}
}
}
return 0;
}
{
N_("[PATTERN ...]"),
N_("Show a help message."), 0);
}
{
}