]> git.sur5r.net Git - openocd/commitdiff
help: help now works on configuration commands
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 27 Oct 2010 06:37:54 +0000 (08:37 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 27 Oct 2010 06:50:45 +0000 (08:50 +0200)
help would not show help for commands when the command
interpreter was in the wrong mode, which means that
e.g. "help newtap" didn't work, it wouldn't show the
"jtag newtap" help as it was a configuration command.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/helper/command.c

index 1bd8c42912656e263a792817fc8b5752db00b62e..6762ad4d1412dbe63497c51a26bbb6de72f39867 100644 (file)
@@ -956,9 +956,6 @@ static void command_help_show_wrap(const char *str, unsigned n, unsigned n2)
 static COMMAND_HELPER(command_help_show, struct command *c, unsigned n,
                bool show_help, const char *match)
 {
-       if (!command_can_run(CMD_CTX, c))
-               return ERROR_OK;
-
        char *cmd_name = command_name(c, ' ');
        if (NULL == cmd_name)
                return -ENOMEM;