[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 03/09: [tbl]: Describe command if asked for `--help`.
From: |
G. Branden Robinson |
Subject: |
[groff] 03/09: [tbl]: Describe command if asked for `--help`. |
Date: |
Wed, 4 Dec 2024 09:51:21 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 8b958f0450ecd83142182c3d3efc687c0e642a3a
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Dec 3 03:49:55 2024 -0600
[tbl]: Describe command if asked for `--help`.
* src/preproc/tbl/main.cpp (usage): If asked for `--help`, summarize
command purpose in message.
---
ChangeLog | 5 +++++
src/preproc/tbl/main.cpp | 6 ++++++
2 files changed, 11 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 40b483eea..a2dc01004 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-03 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/preproc/tbl/main.cpp (usage): If asked for `--help`,
+ summarize command purpose in message.
+
2024-12-03 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/utils/grog/grog.pl (usage):
diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index d0766c0c5..da2d98f23 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -1641,6 +1641,12 @@ static void usage(FILE *stream)
"usage: %s {-v | --version}\n"
"usage: %s --help\n",
program_name, program_name, program_name);
+ if (stdout == stream)
+ fputs("\n"
+"GNU tbl is a filter that translates descriptions of tables embedded\n"
+"in roff(7) input into the language understood by GNU troff(1). See\n"
+"the tbl(1) manual page.\n",
+ stream);
}
int main(int argc, char **argv)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 03/09: [tbl]: Describe command if asked for `--help`.,
G. Branden Robinson <=