From: nishi Date: Wed, 22 May 2024 23:25:10 +0000 (+0000) Subject: hide .help if reading from file X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c3f241619b0c510dd838fe8f2ac3399c8c9b62e8;p=dataworks.git hide .help if reading from file git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@84 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Client/main.c b/Client/main.c index c7bcdf0..f0b2704 100644 --- a/Client/main.c +++ b/Client/main.c @@ -148,8 +148,10 @@ int main(int argc, char** argv) { strftime(mtimestr, 255, "%a %b %d %H:%M:%S %Z %Y", tm); printf("Opened the database (Version %d, Modified at %s).\n", dataworks_database_get_version(db), mtimestr); printf("\n"); - printf("Type a command (.help) for the help.\n"); - printf("\n"); + if(fprog == NULL){ + printf("Type a command (.help) for the help.\n"); + printf("\n"); + } } int len = 0; char* buf = malloc(1);