From 4581329cde6cfb64399be48f58d67310ab19ee1b Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 7 Jan 2023 09:54:40 -0800 Subject: include working --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index bbe725c..5315549 100644 --- a/src/main.c +++ b/src/main.c @@ -131,6 +131,10 @@ int main(int argc, char **argv) { printf("TOO FEW ARGUMENTS.\n"); exit(1); } + if (strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version") == 0) { + printf("nxs, version 1.0.0 alpha\n"); + exit(0); + } char *filename = argv[1]; char *buffer = 0; -- cgit