diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-10-27 08:37:54 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-10-27 08:50:45 +0200 |
commit | 2ff1adfa79853dde77fe2698dd83e34b116daacc (patch) | |
tree | ac5362d59ef930c8f5ef8faf21212c131ae609d7 /src/helper | |
parent | f176278e98536981a212c0cfcee75ec94ab2c158 (diff) | |
download | openocd_libswd-2ff1adfa79853dde77fe2698dd83e34b116daacc.tar.gz openocd_libswd-2ff1adfa79853dde77fe2698dd83e34b116daacc.tar.bz2 openocd_libswd-2ff1adfa79853dde77fe2698dd83e34b116daacc.tar.xz openocd_libswd-2ff1adfa79853dde77fe2698dd83e34b116daacc.zip |
help: help now works on configuration commands
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>
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/command.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index 1bd8c429..6762ad4d 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -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; |