From ab23d0bb3f66cfb7a97a8aa6b8007687ed7a6925 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Tue, 13 May 2014 16:14:05 +0200 Subject: commands: group 'help' output The old output of "help" was just producing a long list, that usually scrolled of the screen (even on a X11 terminal). This list is more compact, and also sorted by groups. The old output format (plus grouping) is now available with 'help -v'. Example: Information commands: ?, devinfo, help, iomem, meminfo, version Boot commands: boot, bootm, go, loadb, loads, loadx, loady, saves, uimage ... Signed-off-by: Holger Schurig Signed-off-by: Sascha Hauer --- common/hush.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') diff --git a/common/hush.c b/common/hush.c index 1447fdb7f1..5893c5129b 100644 --- a/common/hush.c +++ b/common/hush.c @@ -1940,6 +1940,7 @@ static const __maybe_unused char cmd_sh_help[] = BAREBOX_CMD_START(sh) .cmd = do_sh, .usage = "run shell script", + BAREBOX_CMD_GROUP(CMD_GRP_SCRIPT) BAREBOX_CMD_HELP(cmd_sh_help) BAREBOX_CMD_END @@ -1983,6 +1984,7 @@ BAREBOX_CMD_START(source) .aliases = source_aliases, .cmd = do_source, .usage = cmd_source_usage, + BAREBOX_CMD_GROUP(CMD_GRP_SCRIPT) BAREBOX_CMD_HELP(cmd_source_help) BAREBOX_CMD_END @@ -2004,6 +2006,7 @@ static const __maybe_unused char cmd_exit_help[] = BAREBOX_CMD_START(exit) .cmd = do_dummy_command, .usage = "exit script", + BAREBOX_CMD_GROUP(CMD_GRP_SCRIPT) BAREBOX_CMD_HELP(cmd_exit_help) BAREBOX_CMD_END @@ -2020,6 +2023,7 @@ static const __maybe_unused char cmd_getopt_help[] = BAREBOX_CMD_START(getopt) .cmd = do_dummy_command, .usage = "getopt ", + BAREBOX_CMD_GROUP(CMD_GRP_SCRIPT) BAREBOX_CMD_HELP(cmd_getopt_help) BAREBOX_CMD_END #endif -- cgit v1.2.3