1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 02:30:35 +02:00

doc: improve the man page for sleep

This patch is part of work done for a project from Google Summer of
Code, see the project details at
<https://summerofcode.withgoogle.com/programs/2024/projects/E9Jp7RUx>.

* src/sleep.c (usage): Directly mention the floating-point option,
which is typical for sleeping milliseconds.
Also reorganize the text to be 3 lines rather than 4.
This commit is contained in:
Nikolaos Chatzikonstantinou
2024-05-14 12:25:47 -04:00
committed by Pádraig Brady
parent b5ce9fb177
commit 684db6cb9b
+3 -4
View File
@@ -42,10 +42,9 @@ usage (int status)
printf (_("\
Usage: %s NUMBER[SUFFIX]...\n\
or: %s OPTION\n\
Pause for NUMBER seconds. SUFFIX may be 's' for seconds (the default),\n\
'm' for minutes, 'h' for hours or 'd' for days. NUMBER need not be an\n\
integer. Given two or more arguments, pause for the amount of time\n\
specified by the sum of their values.\n\
Pause for NUMBER seconds, where NUMBER is an integer or floating-point.\n\
SUFFIX may be 's','m','h', or 'd', for seconds, minutes, hours, days.\n\
With multiple arguments, pause for the sum of their values.\n\
\n\
"),
program_name, program_name);