1
0

remove -v

This commit is contained in:
dtb 2023-09-14 10:07:38 -04:00
parent 82a7dfc5f0
commit 8d77c22d94

View File

@ -1,18 +1,13 @@
/* See LICENSE file for copyright and license details. */
/* I'm not a very good C programmer and this isn't the best I can do.
* There are a lot of fragments here from Suckless' dmenu. I would
* recommend hacking on that instead. This is itself a total hack and
* not a pretty one, but it works and I'm at least proud of that.
/* This is a hack I did years ago. Fork dmenu and start from there if you can.
* ~ trinity */
#include <ctype.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <unistd.h>
#include <X11/Xlib.h>
@ -188,7 +183,7 @@ setup(void)
static void
usage(void)
{
fputs("usage: dmenubar [-bv] [-fn font] [-m monitor]\n"
fputs("usage: dmenubar [-b] [-fn font] [-m monitor]\n"
" [-cb color] [-cf color] [-w windowid]\n", stderr);
exit(1);
}
@ -203,11 +198,7 @@ main(int argc, char *argv[])
text[i] = '\0';
for (i = 1; i < argc; i++)
/* these options take no arguments */
if (!strcmp(argv[i], "-v")) { /* prints version information */
puts("dmenuBAR-"VERSION);
exit(0);
} else if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */
if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */
topbar = 0;
else if (i + 1 == argc)
usage();