summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/st.c b/st.c
index e82faaa..8a8804f 100644
--- a/st.c
+++ b/st.c
@@ -1,13 +1,17 @@
1/* See LICENSE file for copyright and license details. */ 1/* See LICENSE file for copyright and license details. */
2#include "util.h"
3#include <stdio.h> 2#include <stdio.h>
3#include <stdlib.h>
4#include <string.h> 4#include <string.h>
5 5
6int 6int
7main(int argc, char *argv[]) { 7main(int argc, char *argv[]) {
8 if(argc == 2 && !strcmp("-v", argv[1])) 8 if(argc == 2 && !strcmp("-v", argv[1])) {
9 eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n"); 9 fprintf(stderr, "st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
10 else if(argc != 1) 10 exit(EXIT_SUCCESS);
11 eprint("usage: st [-v]\n"); 11 }
12 else if(argc != 1) {
13 fprintf(stderr, "usage: st [-v]\n");
14 exit(EXIT_FAILURE);
15 }
12 return 0; 16 return 0;
13} 17}