2005-01-31 Marco Gerards <metgerards@student.han.nl>
* commands/help.c: New file. * normal/arg.c (show_help): Renamed to... (grub_arg_show_help): ... this. * commands/i386/pc/halt.c: New file. * commands/i386/pc/reboot.c: Likewise. * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'. (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'. (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES) (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New variables. * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `commands/help.c'. (pkgdata_MODULES): Add `help.mod'. (help_mod_SOURCES, help_mod_CFLAGS): New variables. * grub/i386/pc/init.h (grub_reboot): New prototype. (grub_halt): Likewise. * include/grub/normal.h (grub_arg_show_help): New prototype. (grub_help_init): Likewise. (grub_help_fini): Likewise. * util/grub-emu.c (main): Initialize and deinitialize the help command. * normal/cmdline.c (grub_cmdline_get): Doc fix. * normal/command.c (grub_command_init): Fixed the description of the `set' and `unset' commands.
This commit is contained in:
parent
0f79cdc1db
commit
990cf3aa8a
12 changed files with 326 additions and 15 deletions
|
@ -101,8 +101,8 @@ show_usage (grub_command_t cmd)
|
|||
grub_printf ("Usage: %s\n", cmd->summary);
|
||||
}
|
||||
|
||||
static void
|
||||
show_help (grub_command_t cmd)
|
||||
void
|
||||
grub_arg_show_help (grub_command_t cmd)
|
||||
{
|
||||
static void showargs (const struct grub_arg_option *opt)
|
||||
{
|
||||
|
@ -140,7 +140,7 @@ parse_option (grub_command_t cmd, int key, char *arg, struct grub_arg_list *usr)
|
|||
switch (key)
|
||||
{
|
||||
case 'h':
|
||||
show_help (cmd);
|
||||
grub_arg_show_help (cmd);
|
||||
return -1;
|
||||
|
||||
case 'u':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue