diff options
author | Tom Schwindl <schwindl@posteo.de> | 2022-09-26 09:24:15 +0000 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2022-10-01 13:20:40 +0200 |
commit | 7ec32fe4944d4f7137cf2a23366324ffe0f10a70 (patch) | |
tree | a9c6d430677a53c5374e9fa1131178f91d7bc628 | |
parent | fce06f437dcec646ee0a2728fe695f3084cc6ccb (diff) |
dmenu: use die() to print the usage message
-rw-r--r-- | dmenu.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -710,9 +710,8 @@ setup(void) | |||
710 | static void | 710 | static void |
711 | usage(void) | 711 | usage(void) |
712 | { | 712 | { |
713 | fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" | 713 | die("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" |
714 | " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr); | 714 | " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]"); |
715 | exit(1); | ||
716 | } | 715 | } |
717 | 716 | ||
718 | int | 717 | int |