From ba134d3c7c62e242920ac25823edce296d85972a Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Fri, 15 Jan 2021 23:30:52 +0100 Subject: [PATCH] i3bar: Exit with 1 on wrong argument --- RELEASE-NOTES-next | 1 + i3bar/src/main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-next b/RELEASE-NOTES-next index 8797bc932..8f5abd9d1 100644 --- a/RELEASE-NOTES-next +++ b/RELEASE-NOTES-next @@ -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 diff --git a/i3bar/src/main.c b/i3bar/src/main.c index b9dac902b..4e93bb027 100644 --- a/i3bar/src/main.c +++ b/i3bar/src/main.c @@ -128,7 +128,7 @@ int main(int argc, char **argv) { break; default: print_usage(argv[0]); - exit(EXIT_SUCCESS); + exit(EXIT_FAILURE); break; } }