mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-21 23:05:59 +01:00
17 lines
409 B
C
17 lines
409 B
C
/* See LICENSE file for copyright and license details. */
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
int
|
|
main(int argc, char *argv[]) {
|
|
if(argc == 2 && !strcmp("-v", argv[1])) {
|
|
fprintf(stderr, "st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
|
|
exit(EXIT_SUCCESS);
|
|
}
|
|
else if(argc != 1) {
|
|
fprintf(stderr, "usage: st [-v]\n");
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
return 0;
|
|
}
|