* [PATCH] commands: truncate: improve help text clarity
@ 2025-11-19 18:02 Alexander Shiyan
2025-11-20 7:24 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2025-11-19 18:02 UTC (permalink / raw)
To: barebox; +Cc: Alexander Shiyan
Improve truncate command help text by fixing grammatical issues and
making the description clearer, especially for non-native speakers.
Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
commands/truncate.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/commands/truncate.c b/commands/truncate.c
index 5c6d74257d..a603e5a0f2 100644
--- a/commands/truncate.c
+++ b/commands/truncate.c
@@ -83,9 +83,9 @@ static int do_truncate(int argc, char *argv[])
}
BAREBOX_CMD_HELP_START(truncate)
-BAREBOX_CMD_HELP_TEXT("truncate truncates files to a given size. If a file does")
-BAREBOX_CMD_HELP_TEXT("not exist, it is created unless told otherwise.")
-BAREBOX_CMD_HELP_TEXT("")
+BAREBOX_CMD_HELP_TEXT("Set files to specified size. Missing files are created")
+BAREBOX_CMD_HELP_TEXT("unless -c option is used. With -s +SIZE, increase size")
+BAREBOX_CMD_HELP_TEXT("by SIZE bytes; with -s SIZE, set absolute size.")
BAREBOX_CMD_HELP_TEXT("Options:")
BAREBOX_CMD_HELP_OPT ("-c", "Do not create files")
BAREBOX_CMD_HELP_OPT ("-s [+]SIZE", "truncate file to SIZE, or increase by +SIZE")
--
2.38.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] commands: truncate: improve help text clarity
2025-11-19 18:02 [PATCH] commands: truncate: improve help text clarity Alexander Shiyan
@ 2025-11-20 7:24 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-11-20 7:24 UTC (permalink / raw)
To: barebox, Alexander Shiyan
On Wed, 19 Nov 2025 21:02:44 +0300, Alexander Shiyan wrote:
> Improve truncate command help text by fixing grammatical issues and
> making the description clearer, especially for non-native speakers.
>
>
Applied, thanks!
[1/1] commands: truncate: improve help text clarity
https://git.pengutronix.de/cgit/barebox/commit/?id=07c608c3e34f (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-20 7:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-19 18:02 [PATCH] commands: truncate: improve help text clarity Alexander Shiyan
2025-11-20 7:24 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox