groff-commit
[Top][All Lists]
Advanced

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

[groff] 10/39: [pdfmom]: Recognize --version as synonym of -v.


From: G. Branden Robinson
Subject: [groff] 10/39: [pdfmom]: Recognize --version as synonym of -v.
Date: Sun, 9 Oct 2022 23:53:36 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 5f3ba2177f7b456904f7feb43d12ed104b9f94d1
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Oct 9 00:27:51 2022 -0500

    [pdfmom]: Recognize --version as synonym of -v.
    
    * src/devices/gropdf/pdfmom.pl: Recognize "--version" as synonym for
      "-v".
    * src/devices/gropdf/pdfmom.1.man (Synopsis, Description): Document it.
    
    Also addd editor aid comments.
---
 ChangeLog                       |  7 +++++++
 src/devices/gropdf/pdfmom.1.man | 10 +++++++---
 src/devices/gropdf/pdfmom.pl    |  7 ++++++-
 3 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 585874e60..04c9a8470 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-10-09  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/devices/gropdf/pdfmom.pl: Recognize "--version" as synonym
+       for "-v".
+       * src/devices/gropdf/pdfmom.1.man (Synopsis, Description):
+       Document it.
+
 2022-10-08  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/utils/grog/grog.pl (version): Identify as a GNU program.
diff --git a/src/devices/gropdf/pdfmom.1.man b/src/devices/gropdf/pdfmom.1.man
index 532ed16ef..e77aff439 100644
--- a/src/devices/gropdf/pdfmom.1.man
+++ b/src/devices/gropdf/pdfmom.1.man
@@ -54,6 +54,9 @@ macro package for
 .
 .SY pdfmom
 .B \-v
+.
+.SY pdfmom
+.B \-\-version
 .YS
 .
 .
@@ -149,10 +152,11 @@ which was itself produced with
 .P
 If called with the
 .B \-v
-option,
-.I pdfmom
-simply displays its version information and exits.
+or
+.B \-\-version
+options,
 .I pdfmom
+displays its version information and exits.
 .
 .
 .\" ====================================================================
diff --git a/src/devices/gropdf/pdfmom.pl b/src/devices/gropdf/pdfmom.pl
index 4f89a77b4..8e88c0763 100644
--- a/src/devices/gropdf/pdfmom.pl
+++ b/src/devices/gropdf/pdfmom.pl
@@ -72,7 +72,7 @@ while (my $c=shift)
        $dev=$c;
        next;
     }
-    elsif ($c eq '-v')
+    elsif ($c eq '-v' or $c eq '--version')
     {
        print "GNU pdfmom (groff) version @VERSION@\n";
        exit;
@@ -142,3 +142,8 @@ else
     exit 1;
 }
 
+# Local Variables:
+# fill-column: 72
+# mode: CPerl
+# End:
+# vim: set cindent noexpandtab shiftwidth=2 softtabstop=2 textwidth=72:



reply via email to

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