commit 7ec32fe4944d4f7137cf2a23366324ffe0f10a70 from: Tom Schwindl via: Hiltjo Posthuma date: Sat Oct 1 11:20:40 2022 UTC dmenu: use die() to print the usage message commit - fce06f437dcec646ee0a2728fe695f3084cc6ccb commit + 7ec32fe4944d4f7137cf2a23366324ffe0f10a70 blob - 818313aafd0fbdf7c56060b1e78daf023e3a5271 blob + 7cf253b09a4ddb8136d4b32758fa4c88445e08e2 --- dmenu.c +++ dmenu.c @@ -710,9 +710,8 @@ setup(void) static void usage(void) { - fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" - " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr); - exit(1); + die("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" + " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]"); } int