Simplify usage()
This commit is contained in:
parent
93329c72b5
commit
e75676d9a4
5
sent.c
5
sent.c
@ -645,8 +645,7 @@ configure(XEvent *e)
|
|||||||
void
|
void
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
die("sent " VERSION " (c) 2014-2015 markus.teich@stusta.mhn.de\n" \
|
die("usage: %s [file]\n", argv0);
|
||||||
"usage: sent [FILE]\n", argv0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -656,6 +655,8 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 'v':
|
case 'v':
|
||||||
|
fprintf(stderr, "sent-"VERSION"\n");
|
||||||
|
return 0;
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
} ARGEND;
|
} ARGEND;
|
||||||
|
Loading…
Reference in New Issue
Block a user