[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 04/14: [tbl]: Fix call to `getopt_long()`.
From: |
G. Branden Robinson |
Subject: |
[groff] 04/14: [tbl]: Fix call to `getopt_long()`. |
Date: |
Wed, 1 Dec 2021 13:06:14 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 8136238cc4c2f093da9342544495e8542556dfd6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 24 18:06:24 2021 +1100
[tbl]: Fix call to `getopt_long()`.
* src/preproc/tbl/main.cpp (main): Stop telling `getopt_long()` to look
for a `T` option. Continues b4bbf32e, 16 October 2020.
---
ChangeLog | 7 +++++++
src/preproc/tbl/main.cpp | 3 ++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index ba3505d..840fa51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2021-11-25 G. Branden Robinson <g.branden.robinson@gmail.com>
+ [tbl]: Fix call to `getopt_long()`.
+
+ * src/preproc/tbl/main.cpp (main): Stop telling `getopt_long()`
+ to look for a `T` option. Continues b4bbf32e, 16 October 2020.
+
+2021-11-25 G. Branden Robinson <g.branden.robinson@gmail.com>
+
[tbl]: Tweak usage message.
* src/preproc/tbl/main.cpp (usage): Document `--version`. Give
diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index e839e56..a95df18 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -1574,7 +1574,8 @@ int main(int argc, char **argv)
{ "version", no_argument, 0, 'v' },
{ NULL, 0, 0, 0 }
};
- while ((opt = getopt_long(argc, argv, "vCT:", long_options, NULL)) != EOF)
+ while ((opt = getopt_long(argc, argv, "vC", long_options, NULL))
+ != EOF)
switch (opt) {
case 'C':
compatible_flag = 1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 04/14: [tbl]: Fix call to `getopt_long()`.,
G. Branden Robinson <=