dmenu: use die() to print the usage message
7ec32fe4
1 file(s) · +2 −3
| 710 | 710 | static void |
|
| 711 | 711 | usage(void) |
|
| 712 | 712 | { |
|
| 713 | - | fputs("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); |
|
| 715 | - | exit(1); |
|
| 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]"); |
|
| 716 | 715 | } |
|
| 717 | 716 | ||
| 718 | 717 | int |