diff options
author | Holger Schurig <holgerschurig@gmail.com> | 2014-05-13 16:14:05 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-14 07:59:55 +0200 |
commit | ab23d0bb3f66cfb7a97a8aa6b8007687ed7a6925 (patch) | |
tree | 5163ba7d9ce1fc0ddd144a1de59b7db1192911f6 /commands/ubi.c | |
parent | 5a4d617a1c5bd7be7b28ead716589c3f488367c0 (diff) | |
download | barebox-ab23d0bb3f66cfb7a97a8aa6b8007687ed7a6925.tar.gz barebox-ab23d0bb3f66cfb7a97a8aa6b8007687ed7a6925.tar.xz |
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 <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/ubi.c')
-rw-r--r-- | commands/ubi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/ubi.c b/commands/ubi.c index 8a409c28a8..9a70db1975 100644 --- a/commands/ubi.c +++ b/commands/ubi.c @@ -52,6 +52,7 @@ static const __maybe_unused char cmd_ubimkvol_help[] = BAREBOX_CMD_START(ubimkvol) .cmd = do_ubimkvol, .usage = "create an ubi volume", + BAREBOX_CMD_GROUP(CMD_GRP_PART) BAREBOX_CMD_HELP(cmd_ubimkvol_help) BAREBOX_CMD_END @@ -106,6 +107,7 @@ static const __maybe_unused char cmd_ubiattach_help[] = BAREBOX_CMD_START(ubiattach) .cmd = do_ubiattach, .usage = "attach a mtd dev to ubi", + BAREBOX_CMD_GROUP(CMD_GRP_PART) BAREBOX_CMD_HELP(cmd_ubiattach_help) BAREBOX_CMD_END @@ -132,6 +134,7 @@ static const __maybe_unused char cmd_ubidetach_help[] = BAREBOX_CMD_START(ubidetach) .cmd = do_ubidetach, .usage = "detach an ubi dev", + BAREBOX_CMD_GROUP(CMD_GRP_PART) BAREBOX_CMD_HELP(cmd_ubidetach_help) BAREBOX_CMD_END @@ -167,6 +170,7 @@ static const __maybe_unused char cmd_ubirmvol_help[] = BAREBOX_CMD_START(ubirmvol) .cmd = do_ubirmvol, .usage = "delete an ubi volume", + BAREBOX_CMD_GROUP(CMD_GRP_PART) BAREBOX_CMD_HELP(cmd_ubirmvol_help) BAREBOX_CMD_END |