From 17e0cd44aa9ea9939095c01b6ee86e4b151be465 Mon Sep 17 00:00:00 2001 From: vx-clutch Date: Thu, 17 Jul 2025 22:11:47 -0400 Subject: [PATCH] fix: finished stand argument parsing --- Makefile | 2 +- config.h | 5 ++--- core/standard.c | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index dcf5d85..bc387a6 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ build: mkdir -p c-out/obj c-out/obj/%.o: yait/%.c - $(CC) $(CFLAGS) -DCOMMIT=$(shell git rev-list --count --all) -c $< -o $@ + $(CC) $(CFLAGS) -c $< -o $@ $(YAIT): $(YAIT_OBJS) $(CC) $(CFLAGS) -DCOMMIT=$(shell git rev-list --count --all) $^ -o $@ diff --git a/config.h b/config.h index 8c7ddef..5193ffa 100644 --- a/config.h +++ b/config.h @@ -2,10 +2,9 @@ #define CONFIG_H #define PROGRAM "yait" - +#define LICENSE_LINE "License BSD-3-Clause: BSD-3-Clause " +#define AUTHOR "vx_clutch" #define VERSION "pre-alpha" #define YEAR 2025 -#define LICENCE_LINE "License BSD-3-Clause: BSD-3-Clause " - #endif diff --git a/core/standard.c b/core/standard.c index a991178..6bc39d4 100644 --- a/core/standard.c +++ b/core/standard.c @@ -10,7 +10,7 @@ int parse_standard_options(void (*usage)(), int argc, char **argv) { usage(); exit(0); } else if (strcmp(argv[i], "--version") == 0) { - printf("%s %s %d\n", PROGRAM, VERSION, COMMIT); + printf("%s %s %d\nCopyright (C) %d %s.\n%s\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRNTY, to the extent permitted by law.\n", PROGRAM, VERSION, COMMIT, YEAR, AUTHOR, LICENSE_LINE); exit(0); } }