feat: update help information
This commit is contained in:
parent
58bc0c37d1
commit
64b74104af
1 changed files with 16 additions and 1 deletions
17
builtin.c
17
builtin.c
|
@ -42,7 +42,22 @@ int dish_cd(char **args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int dish_help(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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue