]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: improve the man page for sleep
authorNikolaos Chatzikonstantinou <nchatz314@gmail.com>
Tue, 14 May 2024 16:25:47 +0000 (12:25 -0400)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 May 2024 08:16:38 +0000 (09:16 +0100)
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.

src/sleep.c

index eedf8b85055ebab0d0660760231a8b968a9a0927..ad2b349cb13dac4d49f71a418729f5b908539968 100644 (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);