From d509e189d49f623a639837ac7de8a536d362acc6 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 28 Mar 2021 15:19:38 +0200 Subject: [PATCH] usage already exits, remove exit(2) This now exits with the same status 1. Document exit status in the man page. --- svkbd.1 | 2 ++ svkbd.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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); } }