summaryrefslogtreecommitdiff
path: root/sent.c
diff options
context:
space:
mode:
authorFRIGN <dev@frign.de>2016-07-14 13:10:34 +0200
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-07-14 22:23:46 +0200
commite75676d9a4dd6dc275d3a233cc60f7624c62f189 (patch)
tree0bae4be7b9b051fe8aa81ad5cc2d36cf8d5a8bf8 /sent.c
parent93329c72b5c20bcdf937bd636cb1a6f331a97893 (diff)
Simplify usage()
Diffstat (limited to 'sent.c')
-rw-r--r--sent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sent.c b/sent.c
index a9ca274..da75439 100644
--- a/sent.c
+++ b/sent.c
@@ -645,8 +645,7 @@ configure(XEvent *e)
void
usage()
{
- die("sent " VERSION " (c) 2014-2015 markus.teich@stusta.mhn.de\n" \
- "usage: sent [FILE]\n", argv0);
+ die("usage: %s [file]\n", argv0);
}
int
@@ -656,6 +655,8 @@ main(int argc, char *argv[])
ARGBEGIN {
case 'v':
+ fprintf(stderr, "sent-"VERSION"\n");
+ return 0;
default:
usage();
} ARGEND;