mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Add help command line flag
This commit is contained in:
parent
716dd55d08
commit
514cc1c78f
1 changed files with 5 additions and 1 deletions
6
bspwm.c
6
bspwm.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue