From: "Ulrich Ölmann" <u.oelmann@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] commands: sconfig: fix command description
Date: Tue, 29 Sep 2026 10:01:53 +0200 [thread overview]
Message-ID: <20260929080153.2606828-1-u.oelmann@pengutronix.de> (raw)
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
next reply other threads:[~2026-09-29 8:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 8:01 Ulrich Ölmann [this message]
2026-09-29 8:09 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260929080153.2606828-1-u.oelmann@pengutronix.de \
--to=u.oelmann@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox