summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-04-05 04:05:14 +0200
committerczjstmax <jstmaxlol@disroot.org>2026-04-05 04:05:14 +0200
commitc730c0d69251e625c0364b6fac07c365e8287b36 (patch)
tree68cb4bd5b0098403539cf6ee82231560a55e2c6e
parentde10ed1d94e9d6d80fdb61394612ef83767c3910 (diff)
added version in `help`
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
-rw-r--r--nm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/nm.c b/nm.c
index 2e694e8..5450612 100644
--- a/nm.c
+++ b/nm.c
@@ -17,7 +17,8 @@
#include <readline/readline.h>
#include <readline/history.h>
-#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 {