From de3754fea3c0d76a854f3cd2f87fd0c39ad3043f Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Thu, 18 Dec 2025 12:44:41 +0100 Subject: cmd: bdinfo: provide long help with all options Document the bdinfo -a, -e and -m options in the long help, but only when they can be used. The string concatenation is a bit odd with two newlines, but it does render properly once in U-Boot CLI. Tested-by: Michal Simek Signed-off-by: Quentin Schulz --- test/cmd/bdinfo.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/cmd') diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c index 3005c85d4a0..892f2e34d89 100644 --- a/test/cmd/bdinfo.c +++ b/test/cmd/bdinfo.c @@ -310,6 +310,17 @@ static int bdinfo_test_help(struct unit_test_state *uts) ut_assert_nextline_empty(); ut_assert_nextlinen("Usage:"); ut_assert_nextlinen("bdinfo"); + if (CONFIG_IS_ENABLED(GETOPT)) + ut_assert_nextlinen("bdinfo -a"); + ut_assert_nextlinen(" - print all Board Info structure"); + if (CONFIG_IS_ENABLED(GETOPT)) { + if (IS_ENABLED(CONFIG_NET) || IS_ENABLED(CONFIG_NET_LWIP)) { + ut_assert_nextlinen("bdinfo -e"); + ut_assert_nextlinen(" - print Board Info related to network"); + } + ut_assert_nextlinen("bdinfo -m"); + ut_assert_nextlinen(" - print Board Info related to DRAM"); + } } ut_assert_console_end(); -- cgit v1.3.1