* [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
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