summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-07 09:54:40 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-07 09:54:40 -0800
commit4581329cde6cfb64399be48f58d67310ab19ee1b (patch)
treec76893896ae4375c618ecffad71fa9ffb3717be2 /src/main.c
parentc620d528fb9d9efbac559002d23857623e71df05 (diff)
include working
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
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;