groff-commit
[Top][All Lists]
Advanced

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

[groff] 41/72: [gxditview]: Update usage message.


From: G. Branden Robinson
Subject: [groff] 41/72: [gxditview]: Update usage message.
Date: Sun, 23 Oct 2022 22:25:40 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 8ee717eac013a28cb8e3800c8ba935611f84f892
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 22 12:51:34 2022 -0500

    [gxditview]: Update usage message.
    
    * src/devices/xditview/xditview.cpp (usage): Update usage message.
      Present different modes of operation on separate output lines.  Sort
      options in English lexicographic order.  Document help option(s) as
      last mode of operation.
---
 ChangeLog                       | 4 +++-
 src/devices/xditview/xditview.c | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 30c378aaa..e4be5a978 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
        * src/devices/grolj4/lj4.cpp (usage):
        * src/devices/grops/ps.cpp (usage):
        * src/devices/grotty/tty.cpp (usage):
+       * src/devices/xditview/xditview.cpp (usage):
        * src/preproc/eqn/main.cpp (usage):
        * src/preproc/grn/main.cpp (usage):
        * src/preproc/pic/main.cpp (usage):
@@ -15,7 +16,8 @@
        * src/utils/tfmtodit/tfmtodit.cpp (usage):
        * src/utils/xtotroff/xtotroff.c (usage): Update usage message.
        Present different modes of operation on separate output lines.
-       Sort options in English lexicographic order.
+       Sort options in English lexicographic order.  Document help
+       option(s) as last mode of operation.
 
 2022-10-21  G. Branden Robinson <g.branden.robinson@gmail.com>
 
diff --git a/src/devices/xditview/xditview.c b/src/devices/xditview/xditview.c
index 1f7931d8d..b46fe9aa2 100644
--- a/src/devices/xditview/xditview.c
+++ b/src/devices/xditview/xditview.c
@@ -135,10 +135,10 @@ Syntax(const char *progname, bool had_error)
                        " [-printCommand command]"
                        " [-resolution resolution]"
                        " [file]\n", progname);
-       (void) fprintf (stream, "usage: %s {-help | --help}\n",
-                       progname);
        (void) fprintf (stream, "usage: %s {-version | --version}\n",
                        progname);
+       (void) fprintf (stream, "usage: %s {-help | --help}\n",
+                       progname);
        if (had_error)
                exit(EXIT_FAILURE);
        else



reply via email to

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