i3bar: Exit with 1 on wrong argument

This commit is contained in:
Orestis Floros 2021-01-15 23:30:52 +01:00
parent 6668d03157
commit ba134d3c7c
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
2 changed files with 2 additions and 1 deletions

View File

@ -26,3 +26,4 @@ strongly encouraged to upgrade.
• clear pixmap before drawing to prevent visual grabage in clients using 'Shape'
• i3bar: properly close file descriptors
• i3bar: properly restart status command after config change
• i3bar: exit with 1 when a wrong command line argument is used

View File

@ -128,7 +128,7 @@ int main(int argc, char **argv) {
break;
default:
print_usage(argv[0]);
exit(EXIT_SUCCESS);
exit(EXIT_FAILURE);
break;
}
}