[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 51/80: [tfmtodit]: Exit w/ status 2 on add'l usage error.
From: |
G. Branden Robinson |
Subject: |
[groff] 51/80: [tfmtodit]: Exit w/ status 2 on add'l usage error. |
Date: |
Sat, 30 Nov 2024 04:02:23 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 4b0432e00dfd024880bcb87c3508f79ccd6b2562
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Nov 29 22:36:49 2024 -0600
[tfmtodit]: Exit w/ status 2 on add'l usage error.
* src/utils/tfmtodit/tfmtodit.cpp (main): Exit with status 2, not 1, on
usage error (insufficient arguments). Continues commit 89283b0935, 18
October.
---
ChangeLog | 6 ++++++
src/utils/tfmtodit/tfmtodit.cpp | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index dfaadd434..a2a8cfae2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-11-29 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/utils/tfmtodit/tfmtodit.cpp (main): Exit with status 2,
+ not 1, on usage error (insufficient arguments). Continues
+ commit 89283b0935, 18 October.
+
2024-11-27 G. Branden Robinson <g.branden.robinson@gmail.com>
[lookbib]: Align with modern groff conventions.
diff --git a/src/utils/tfmtodit/tfmtodit.cpp b/src/utils/tfmtodit/tfmtodit.cpp
index 6cd8c4c5c..b5fdac73c 100644
--- a/src/utils/tfmtodit/tfmtodit.cpp
+++ b/src/utils/tfmtodit/tfmtodit.cpp
@@ -741,7 +741,7 @@ int main(int argc, char **argv)
if (argc - optind != 3) {
error("insufficient arguments");
usage(stderr);
- exit(1);
+ exit(2);
}
gf g;
if (gf_file) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 51/80: [tfmtodit]: Exit w/ status 2 on add'l usage error.,
G. Branden Robinson <=