diff options
| author | Nikolaos Chatzikonstantinou <nchatz314@gmail.com> | 2024-05-14 12:25:47 -0400 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2024-05-15 09:16:38 +0100 |
| commit | 684db6cb9b06cbb4f246152da427da6f47aa16cc (patch) | |
| tree | 8a6040acac1759e68a35472f2d7cb953a693a133 | |
| parent | tests: cksum: add incorrect data to verify --check & --strict (diff) | |
| download | coreutils-684db6cb9b06cbb4f246152da427da6f47aa16cc.tar.gz coreutils-684db6cb9b06cbb4f246152da427da6f47aa16cc.zip | |
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.
| -rw-r--r-- | src/sleep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sleep.c b/src/sleep.c index eedf8b850..ad2b349cb 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -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); |
