Exit with success on -h

This commit is contained in:
Orestis Floros 2020-01-16 09:21:16 +01:00
parent d21c3a09f4
commit f7aee6b908
No known key found for this signature in database
GPG Key ID: 859B90B34AEC1728
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ int main(int argc, char *argv[]) {
"\ti3 floating toggle\n" "\ti3 floating toggle\n"
"\ti3 kill window\n" "\ti3 kill window\n"
"\n"); "\n");
exit(EXIT_FAILURE); exit(opt == 'h' ? EXIT_SUCCESS : EXIT_FAILURE);
} }
} }