parent
d83cbc27b9
commit
f982c1c37c
@ -1,13 +1,17 @@
|
|||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
#include "util.h"
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[]) {
|
main(int argc, char *argv[]) {
|
||||||
if(argc == 2 && !strcmp("-v", argv[1]))
|
if(argc == 2 && !strcmp("-v", argv[1])) {
|
||||||
eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
|
fprintf(stderr, "st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
|
||||||
else if(argc != 1)
|
exit(EXIT_SUCCESS);
|
||||||
eprint("usage: st [-v]\n");
|
}
|
||||||
|
else if(argc != 1) {
|
||||||
|
fprintf(stderr, "usage: st [-v]\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue