From c730c0d69251e625c0364b6fac07c365e8287b36 Mon Sep 17 00:00:00 2001 From: czjstmax Date: Sun, 5 Apr 2026 04:05:14 +0200 Subject: added version in `help` Signed-off-by: czjstmax --- nm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'nm.c') diff --git a/nm.c b/nm.c index 2e694e8..5450612 100644 --- a/nm.c +++ b/nm.c @@ -17,7 +17,8 @@ #include #include -#define MAX_ALIASES 256 +#define NOSHMORE_VERSION 2 +#define MAX_ALIASES 256 typedef struct { char *dst; @@ -117,7 +118,7 @@ int main(void) } else if (strcmp(p.we_wordv[0], "help") == 0) { printf( - "noshmore\tALIASES(%d)\n" + "noshmore\tVERSION(%d)\tALIASES(%d)\n" "an extended version of nosh, the minimal POSIX C shell.\n" "\n" "built-ins:\n" @@ -129,7 +130,7 @@ int main(void) "cd -> change working directory\n" "help -> prints this screen\n" "\ngithub repo: github.com/jstmaxlol/noshmore\n" - , MAX_ALIASES + , NOSHMORE_VERSION, MAX_ALIASES ); } else { -- cgit v1.3.1