commit d509e189d49f623a639837ac7de8a536d362acc6
Author:     Hiltjo Posthuma <[email protected]>
AuthorDate: Sun Mar 28 15:19:38 2021 +0200
Commit:     Hiltjo Posthuma <[email protected]>
CommitDate: Sun Mar 28 15:19:38 2021 +0200

    usage already exits, remove exit(2)
    
    This now exits with the same status 1.
    Document exit status in the man page.

diff --git a/svkbd.1 b/svkbd.1
index 572952c..d6cbd4b 100644
--- a/svkbd.1
+++ b/svkbd.1
@@ -105,6 +105,8 @@ The colour for keys when they are part of an overlay
 .It Ev svkbd.overlayshiftbackground
 The colour for the secondary label on keys when they are part of an overlay
 .El
+.Sh EXIT STATUS
+.Ex -std
 .Sh SEE ALSO
 .Xr XParseGeometry 3
 .Sh AUTHORS
diff --git a/svkbd.c b/svkbd.c
index 9bacf6a..9f19a83 100644
--- a/svkbd.c
+++ b/svkbd.c
@@ -1200,7 +1200,6 @@ main(int argc, char *argv[])
                } else {
                        fprintf(stderr, "Invalid argument: %s\n", argv[i]);
                        usage(argv[0]);
-                       exit(2);
                }
        }
 

Reply via email to