bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 12/23] test/gdc.c: Align usage message with man page.


From: G. Branden Robinson
Subject: [PATCH 12/23] test/gdc.c: Align usage message with man page.
Date: Sat, 22 Jun 2024 12:49:00 -0500

---
 test/gdc.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/test/gdc.c b/test/gdc.c
index c30e2a9d5..93a3609ab 100644
--- a/test/gdc.c
+++ b/test/gdc.c
@@ -155,18 +155,19 @@ usage(int ok)
 {
     static const char *msg[] =
     {
-       "Usage: gdc [options] [count]"
+       "usage: gdc [-dns] -[t HH:MM:SS] [COUNT]"
+       ,""
+       ,"Display a digital clock, running indefinitely or for COUNT"
+       " seconds."
        ,""
        ,USAGE_COMMON
        ,"Options:"
 #if HAVE_USE_DEFAULT_COLORS
-       ," -d       invoke use_default_colors"
+       ," -d           uses the terminal's default background color"
 #endif
-       ," -n       redirect input to /dev/null"
-       ," -s       scroll each number into place, rather than flipping"
-       ," -t TIME  specify starting time as hh:mm:ss (default is ``now'')"
-       ,""
-       ,"If you specify a count, gdc runs for that number of seconds"
+       ," -n           reads input from /dev/null"
+       ," -s           scrolls each digit into place"
+       ," -t HH:MM:SS  starts clock at specified time"
     };
     unsigned j;
     for (j = 0; j < SIZEOF(msg); j++)
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]