summaryrefslogtreecommitdiffstats
path: root/common/command.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2015-03-17 12:53:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-19 07:46:22 +0100
commit9f15b421057304c17556a75b439eef42a9d38436 (patch)
treec96ef3308b71a963cb3366a2e04ae2abb76389dd /common/command.c
parent5f5d5331bb5e029264b9bc0cfbb3c32ec3158638 (diff)
downloadbarebox-9f15b421057304c17556a75b439eef42a9d38436.tar.gz
barebox-9f15b421057304c17556a75b439eef42a9d38436.tar.xz
command: allow runtime usage
This will allow as example to list the currently supported digest. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c
index 61191c2d62..dc2cb88eaf 100644
--- a/common/command.c
+++ b/common/command.c
@@ -47,6 +47,8 @@ void barebox_cmd_usage(struct command *cmdtp)
puts(cmdtp->help);
putchar('\n');
}
+ if (cmdtp->usage)
+ cmdtp->usage();
#endif
}
EXPORT_SYMBOL(barebox_cmd_usage);