gbranden pushed a commit to branch master
in repository groff.

commit 4b0432e00dfd024880bcb87c3508f79ccd6b2562
Author: G. Branden Robinson <[email protected]>
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 <[email protected]>
+
+       * 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 <[email protected]>
 
        [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) {

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

Reply via email to