From 64b74104afd2bae72fa01ffc8f7bac03cf68a59a Mon Sep 17 00:00:00 2001 From: iridiumR Date: Thu, 30 Mar 2023 18:55:23 +0800 Subject: [PATCH] feat: update help information --- builtin.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/builtin.c b/builtin.c index 088ed59..a467cac 100644 --- a/builtin.c +++ b/builtin.c @@ -42,7 +42,22 @@ int dish_cd(char **args) { } int dish_help(char **args) { - fprintf(stdout, "Yet another Shell with C.\n"); + fprintf(stdout, \ + "Yet another Shell with C.\n\ + CopyRight (C) 2022-2033 1ridic\n\ + Compiled on %s\n\ + Compiler version %s\n\ + Enabled features:\ + ", \ + __TIMESTAMP__, __VERSION__); + + #ifdef DEBUG + fprintf(stdout, "DEBUG "); + #endif + #ifdef POSTGRES + fprintf(stdout, "POSTGRES "); + #endif + fprintf(stdout, "\n"); return 0; }