i3-nagbar: Fix -h / --help output (Thanks ktosiek)
This commit is contained in:
parent
8c1a242f5f
commit
6b4c65e04d
|
@ -243,8 +243,8 @@ int main(int argc, char *argv[]) {
|
||||||
prompt = strdup(optarg);
|
prompt = strdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
printf("i3-nagbar " I3_VERSION);
|
printf("i3-nagbar " I3_VERSION "\n");
|
||||||
printf("i3-nagbar [-s <socket>] [-p <prefix>] [-l <limit>] [-P <prompt>] [-f <font>] [-v]\n");
|
printf("i3-nagbar [-m <message>] [-b <button> <action>] [-f <font>] [-v]\n");
|
||||||
return 0;
|
return 0;
|
||||||
case 'b':
|
case 'b':
|
||||||
buttons = realloc(buttons, sizeof(button_t) * (buttoncnt + 1));
|
buttons = realloc(buttons, sizeof(button_t) * (buttoncnt + 1));
|
||||||
|
|
Loading…
Reference in New Issue