Success exit status on version
This commit is contained in:
parent
43b227926e
commit
d35c4c0844
|
@ -10,7 +10,8 @@
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc == 2 && strcmp(argv[1], "-v") == 0) {
|
||||
die("polytreewm-"VERSION);
|
||||
fputs("polytreewm-"VERSION"\n", stderr);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
if (argc != 1) {
|
||||
|
|
Loading…
Reference in New Issue