remove -v
This commit is contained in:
parent
82a7dfc5f0
commit
8d77c22d94
@ -1,18 +1,13 @@
|
|||||||
/* See LICENSE file for copyright and license details. */
|
/* 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.
|
/* This is a hack I did years ago. Fork dmenu and start from there if you can.
|
||||||
* 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.
|
|
||||||
* ~ trinity */
|
* ~ trinity */
|
||||||
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <time.h>
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
@ -188,7 +183,7 @@ setup(void)
|
|||||||
static void
|
static void
|
||||||
usage(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);
|
" [-cb color] [-cf color] [-w windowid]\n", stderr);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -203,11 +198,7 @@ main(int argc, char *argv[])
|
|||||||
text[i] = '\0';
|
text[i] = '\0';
|
||||||
|
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
/* these options take no arguments */
|
if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */
|
||||||
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 */
|
|
||||||
topbar = 0;
|
topbar = 0;
|
||||||
else if (i + 1 == argc)
|
else if (i + 1 == argc)
|
||||||
usage();
|
usage();
|
||||||
|
Loading…
Reference in New Issue
Block a user