[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 07/38: [eqn]: Drop support for undocumented '-D' option.
From: |
G. Branden Robinson |
Subject: |
[groff] 07/38: [eqn]: Drop support for undocumented '-D' option. |
Date: |
Fri, 2 Sep 2022 19:56:30 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit d12fc1837d63fd6859c940fccd50abaad7a48d55
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Aug 28 16:29:41 2022 -0500
[eqn]: Drop support for undocumented '-D' option.
It has been undocumented, and issued a warning of its obsolescence upon
use, for 30 years, since groff 1.06 (September 1992). That's plenty
long enough for a deprecation cycle.
* src/preproc/eqn/main.cpp (main): Do it.
* NEWS: Add item.
---
ChangeLog | 10 ++++++++++
NEWS | 4 ++++
src/preproc/eqn/main.cpp | 8 ++------
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 145f977e0..57393523b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2022-08-28 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ [eqn]: Drop support for undocumented '-D' option. It has been
+ undocumented, and issued a warning of its obsolescence upon use,
+ for 30 years, since groff 1.06 (September 1992). That's plenty
+ long enough for a deprecation cycle.
+
+ * src/preproc/eqn/main.cpp (main): Do it.
+ * NEWS: Add item.
+
2022-08-27 G. Branden Robinson <g.branden.robinson@gmail.com>
[man]: (EX, EE): Always break line, even if call invalid.
diff --git a/NEWS b/NEWS
index 43463ccee..a2cfb5499 100644
--- a/NEWS
+++ b/NEWS
@@ -115,6 +115,10 @@ o The GNU extension
to use 'o' and 'n' as left and right delimiters, respectively. If
yours does, consider swapping them, or select others.
+o The command-line option -D is no longer supported. It has been
+ undocumented, and issued a warning of its obsolescence upon use, for
+ 30 years, since groff 1.06 (September 1992).
+
pic
---
diff --git a/src/preproc/eqn/main.cpp b/src/preproc/eqn/main.cpp
index 17b5db2f7..c8fe06053 100644
--- a/src/preproc/eqn/main.cpp
+++ b/src/preproc/eqn/main.cpp
@@ -282,7 +282,7 @@ int main(int argc, char **argv)
{ "version", no_argument, 0, 'v' },
{ NULL, 0, 0, 0 }
};
- while ((opt = getopt_long(argc, argv, "DCRvd:f:p:s:m:T:M:rN", long_options,
+ while ((opt = getopt_long(argc, argv, "CRvd:f:p:s:m:T:M:rN", long_options,
NULL))
!= EOF)
switch (opt) {
@@ -350,16 +350,12 @@ int main(int argc, char **argv)
if (sscanf(optarg, "%d", &n) == 1)
set_minimum_size(n);
else
- error("bad size '%1'", optarg);
+ error("invalid size '%1' in '-n' option argument ", optarg);
}
break;
case 'r':
one_size_reduction_flag = 1;
break;
- case 'D':
- warning("-D option is obsolete: use 'set draw_lines 1' instead");
- draw_flag = 1;
- break;
case 'N':
no_newline_in_delim_flag = 1;
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 07/38: [eqn]: Drop support for undocumented '-D' option.,
G. Branden Robinson <=