diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 14 |
1 files changed, 9 insertions, 5 deletions
| @@ -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 | ||
| 6 | int | 6 | int |
| 7 | main(int argc, char *argv[]) { | 7 | main(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 | } |
