diff options
author | Alexander Naumov <alexander_naumov@opensuse.org> | 2022-01-06 21:42:55 +0200 |
---|---|---|
committer | Alexander Naumov <alexander_naumov@opensuse.org> | 2022-01-06 21:42:55 +0200 |
commit | 7908c33f738d5dfc19adfdcf32bb9407edef71a4 (patch) | |
tree | cada646e1b4633cf695a74e3525de0f9e11439b1 | |
parent | ba0cf35ad7346cb5b66acaf7865ea045a14a73ae (diff) | |
download | screen-7908c33f738d5dfc19adfdcf32bb9407edef71a4.tar.gz |
exit_with_usage() return 1 in error case only
"screen -h|--help" should NOT return 1
-rw-r--r-- | src/help.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -111,8 +111,9 @@ void exit_with_usage(char *myname, char *message, char *arg) printf("\nError: "); printf(message, arg); printf("\n"); + exit(1); } - exit(1); + exit(0); } /* Here come the help page routines */ |