Add help command line flag

This commit is contained in:
Bastien Dejean 2013-03-31 19:10:22 +02:00
parent 716dd55d08
commit 514cc1c78f

View file

@ -148,8 +148,12 @@ int main(int argc, char *argv[])
xcb_generic_event_t *event;
char opt;
while ((opt = getopt(argc, argv, "vs:")) != -1) {
while ((opt = getopt(argc, argv, "hvs:")) != -1) {
switch (opt) {
case 'h':
printf("bspwm [-h|-v|-s FIFO]\n");
exit(EXIT_SUCCESS);
break;
case 'v':
printf("%s\n", VERSION);
exit(EXIT_SUCCESS);