diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-07 09:54:40 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-07 09:54:40 -0800 |
commit | 4581329cde6cfb64399be48f58d67310ab19ee1b (patch) | |
tree | c76893896ae4375c618ecffad71fa9ffb3717be2 /src/main.c | |
parent | c620d528fb9d9efbac559002d23857623e71df05 (diff) |
include working
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |