usage already exits, remove exit(2)

This now exits with the same status 1.
Document exit status in the man page.
This commit is contained in:
Hiltjo Posthuma 2021-03-28 15:19:38 +02:00
parent d81fe4c879
commit d509e189d4
2 changed files with 2 additions and 1 deletions

View File

@ -105,6 +105,8 @@ The colour for keys when they are part of an overlay
.It Ev svkbd.overlayshiftbackground .It Ev svkbd.overlayshiftbackground
The colour for the secondary label on keys when they are part of an overlay The colour for the secondary label on keys when they are part of an overlay
.El .El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO .Sh SEE ALSO
.Xr XParseGeometry 3 .Xr XParseGeometry 3
.Sh AUTHORS .Sh AUTHORS

View File

@ -1200,7 +1200,6 @@ main(int argc, char *argv[])
} else { } else {
fprintf(stderr, "Invalid argument: %s\n", argv[i]); fprintf(stderr, "Invalid argument: %s\n", argv[i]);
usage(argv[0]); usage(argv[0]);
exit(2);
} }
} }