groff-commit
[Top][All Lists]
Advanced

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

[groff] 09/14: [grops]: Document -p, --version in usage message.


From: G. Branden Robinson
Subject: [groff] 09/14: [grops]: Document -p, --version in usage message.
Date: Mon, 1 Nov 2021 09:19:40 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 819645e8b25d91700fb5d01f8583749e5f9f4e0c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Nov 1 11:26:09 2021 +1100

    [grops]: Document -p, --version in usage message.
    
    * src/devices/grops/ps.cpp (usage): Document -p and --version options.
    
    Also organize usage message consistently with our others, and stop
    wrapping the output line: we know neither the width of the terminal nor
    the length of the `program_name` string we're interpolating.  See commit
    b4de44f0, 19 July.
---
 ChangeLog                | 5 +++++
 src/devices/grops/ps.cpp | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2faa406..51ad9f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-11-01  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/devices/grops/ps.cpp (usage): Document -p and --version
+       options.
+
 2021-10-31  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * tmac/mdoc/doc-nroff (doc-setup-page-layout): Set the title
diff --git a/src/devices/grops/ps.cpp b/src/devices/grops/ps.cpp
index 804e4f5..37ac546 100644
--- a/src/devices/grops/ps.cpp
+++ b/src/devices/grops/ps.cpp
@@ -1868,9 +1868,9 @@ int main(int argc, char **argv)
 static void usage(FILE *stream)
 {
   fprintf(stream,
-"usage: %s [-glmv] [-b n] [-c n] [-w n] [-I dir] [-P prologue]\n"
-"       [-F dir] [files ...]\n",
-    program_name);
+"usage: %s [-glm] [-b n] [-c n] [-F dir] [-I dir] [-p paper-format]"
+" [-P prologue] [-w n] [file] ...\n"
+"usage: %s {-v | --version}\n", program_name, program_name);
 }
 
 // Local Variables:



reply via email to

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