gbranden pushed a commit to branch master
in repository groff.

commit 2862df6bebd2af444486b3a97642b47cc05c7530
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Dec 21 19:18:13 2024 -0600

    [mm]: Describe mmroff command if asked for --help.
    
    * contrib/mm/mmroff.pl: If asked for `--help`, summarize command purpose
      in message.
---
 contrib/mm/ChangeLog |  5 +++++
 contrib/mm/mmroff.pl | 16 +++++++++++++---
 2 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 775bc1274..a78e64401 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-21  G. Branden Robinson <[email protected]>
+
+       * mmroff.pl: If asked for `--help`, summarize command purpose in
+       message.
+
 2024-12-09  G. Branden Robinson <[email protected]>
 
        * mm.am (uninstall_mm): Attempt to remove
diff --git a/contrib/mm/mmroff.pl b/contrib/mm/mmroff.pl
index da68e4cbc..acb7b78f0 100644
--- a/contrib/mm/mmroff.pl
+++ b/contrib/mm/mmroff.pl
@@ -32,9 +32,19 @@ use Config;
 my $no_exec;
 
 if (grep(/^--help$/, @ARGV)) {
-       print "usage: mmroff [-x] [groff-option ...] [file ...]\n";
-       print "usage: mmroff --version\n";
-       print "usage: mmroff --help\n";
+       print <<EOF;
+usage: mmroff [-x] [groff-option ...] [file ...]
+usage: mmroff --version
+usage: mmroff --help
+
+$progname is a simple wrapper for groff(1), used to expand cross
+references in mm documents; see groff_mm(7).  It also handles the
+inclusion of PostScript images.
+
+Documents that do not use these features of groff mm (the INITI, IND,
+INDP, INITR, SETR, GETHN, GETPN, GETR, GETST, PIC macros) do not require
+mmroff.  See the mmroff(1) manual page.
+EOF
        exit;
 }
 

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to