feat: update help information

This commit is contained in:
iridiumR 2023-03-30 18:55:23 +08:00
parent 58bc0c37d1
commit 64b74104af
No known key found for this signature in database
GPG Key ID: 49735733EB1A32C8
1 changed files with 16 additions and 1 deletions

View File

@ -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;
}