hdt: Add "?" alias for help
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Mon, 30 Mar 2009 00:24:35 +0000 (17:24 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Mon, 30 Mar 2009 00:24:35 +0000 (17:24 -0700)
Impact: New alias

"?" is now mapped to help.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/hdt/hdt-cli.c

index 335eb88..70b202b 100644 (file)
@@ -50,7 +50,7 @@ struct cli_mode_descr *list_modes[] = {
  * strings first.
  */
 char *exit_aliases[] = {"q", "quit"};
-char *help_aliases[] = {"h"};
+char *help_aliases[] = {"h", "?"};
 
 /* List of aliases */
 struct cli_alias hdt_aliases[] = {
@@ -61,7 +61,7 @@ struct cli_alias hdt_aliases[] = {
        },
        {
                .command = CLI_HELP,
-               .nb_aliases = 1,
+               .nb_aliases = 2,
                .aliases = help_aliases,
        },
 };