mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] commands: sconfig: fix command description
@ 2026-09-29  8:01 Ulrich Ölmann
  2026-09-29  8:09 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Ölmann @ 2026-09-29  8:01 UTC (permalink / raw)
  To: Barebox List

Align help texts with the implementation.

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
---
 commands/sconfig.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/commands/sconfig.c b/commands/sconfig.c
index 7afb24366b81..1067fc04c540 100644
--- a/commands/sconfig.c
+++ b/commands/sconfig.c
@@ -214,7 +214,7 @@ static int do_sconfig(int argc, char *argv[])
 }
 
 BAREBOX_CMD_HELP_START(sconfig)
-BAREBOX_CMD_HELP_TEXT("Interact with security policies")
+BAREBOX_CMD_HELP_TEXT("Interact with security policies.")
 BAREBOX_CMD_HELP_TEXT("")
 BAREBOX_CMD_HELP_TEXT("Options:")
 BAREBOX_CMD_HELP_OPT ("-l",  "list registered security policies")
@@ -222,13 +222,18 @@ BAREBOX_CMD_HELP_OPT ("-i POLICY",  "show security options of specified POLICY")
 #ifdef CONFIG_CMD_SCONFIG_MODIFY
 BAREBOX_CMD_HELP_OPT ("-v",  "verbose output: report options as they are modified")
 BAREBOX_CMD_HELP_OPT ("-s POLICY",  "select specified POLICY")
+BAREBOX_CMD_HELP_OPT ("<+->SCONFIG_*",  "enable/disable listed SCONFIG symbol")
 #endif
 BAREBOX_CMD_HELP_END
 
 BAREBOX_CMD_START(sconfig)
         .cmd            = do_sconfig,
         BAREBOX_CMD_DESC("interact with security policies")
-        BAREBOX_CMD_OPTS("[-vlsi] [<+->SCONFIG_*]...")
+#ifdef CONFIG_CMD_SCONFIG_MODIFY
+        BAREBOX_CMD_OPTS("[-l] [-i POLICY] [-v] [-s POLICY]  |  [<+->SCONFIG_*]...")
+#else
+        BAREBOX_CMD_OPTS("[-l] [-i POLICY]")
+#endif
         BAREBOX_CMD_GROUP(CMD_GRP_SECURITY)
         BAREBOX_CMD_HELP(cmd_sconfig_help)
 BAREBOX_CMD_END
-- 
2.47.3




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-29  8:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29  8:01 [PATCH] commands: sconfig: fix command description Ulrich Ölmann
2026-09-29  8:09 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox