fix help message logic
This commit is contained in:
parent
88513a5236
commit
1c34fc8fec
2 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,8 @@ grub_cmd_help (grub_extcmd_context_t ctxt __attribute__ ((unused)), int argc,
|
||||||
if (cnt++ > 0)
|
if (cnt++ > 0)
|
||||||
grub_printf ("\n\n");
|
grub_printf ("\n\n");
|
||||||
|
|
||||||
if (cmd->flags & GRUB_COMMAND_FLAG_EXTCMD)
|
if ((cmd->flags & GRUB_COMMAND_FLAG_EXTCMD) &&
|
||||||
|
! (cmd->flags & GRUB_COMMAND_FLAG_DYNCMD))
|
||||||
grub_arg_show_help ((grub_extcmd_t) cmd->data);
|
grub_arg_show_help ((grub_extcmd_t) cmd->data);
|
||||||
else
|
else
|
||||||
grub_printf ("%s %s %s\n%s\n", _("Usage:"), cmd->name, _(cmd->summary),
|
grub_printf ("%s %s %s\n%s\n", _("Usage:"), cmd->name, _(cmd->summary),
|
||||||
|
|
|
@ -155,6 +155,7 @@ read_command_list (const char *prefix)
|
||||||
grub_dyncmd_dispatcher,
|
grub_dyncmd_dispatcher,
|
||||||
GRUB_COMMAND_FLAG_BLOCKS
|
GRUB_COMMAND_FLAG_BLOCKS
|
||||||
| GRUB_COMMAND_FLAG_EXTCMD
|
| GRUB_COMMAND_FLAG_EXTCMD
|
||||||
|
| GRUB_COMMAND_FLAG_CMDLINE
|
||||||
| GRUB_COMMAND_FLAG_DYNCMD,
|
| GRUB_COMMAND_FLAG_DYNCMD,
|
||||||
0, N_("not loaded"), 0,
|
0, N_("not loaded"), 0,
|
||||||
prio);
|
prio);
|
||||||
|
|
Loading…
Reference in a new issue