diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2026-04-05 04:05:14 +0200 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2026-04-05 04:05:14 +0200 |
| commit | c730c0d69251e625c0364b6fac07c365e8287b36 (patch) | |
| tree | 68cb4bd5b0098403539cf6ee82231560a55e2c6e | |
| parent | de10ed1d94e9d6d80fdb61394612ef83767c3910 (diff) | |
added version in `help`
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
| -rw-r--r-- | nm.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 { |