usage already exits, remove exit(2) - svkbd - simple virtual keyboard
(HTM) git clone git://git.suckless.org/svkbd
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d509e189d49f623a639837ac7de8a536d362acc6
(DIR) parent d81fe4c879ceec2c8c861ccbef4a5d132bda4305
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 28 Mar 2021 15:19:38 +0200
usage already exits, remove exit(2)
This now exits with the same status 1.
Document exit status in the man page.
Diffstat:
M svkbd.1 | 2 ++
M svkbd.c | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git 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
(DIR) diff --git 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);
}
}