commands: truncate: improve help text clarity
PATCH 1/1 commands: truncate: improve help text clarity
Improve truncate command help text by fixing grammatical issues and making the description clearer, especially for non-native speakers.
Signed-off-by Alexander Shiyan <[email protected]>
--- commands/truncate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
commands/truncate.c +3 -3
@@ -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" )
Signature · 1 line
2.38.2
Sascha Hauer
AppliedQuoted 4 lines · Alexander Shiyan
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,
Signature · 1 line
Sascha Hauer <[email protected]>