[PATCH] commands: truncate: improve help text clarity
Alexander Shiyan
eagle.alexander923 at gmail.com
Wed Nov 19 10:02:44 PST 2025
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 at 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
More information about the barebox
mailing list