From c3f241619b0c510dd838fe8f2ac3399c8c9b62e8 Mon Sep 17 00:00:00 2001 From: nishi Date: Wed, 22 May 2024 23:25:10 +0000 Subject: [PATCH] hide .help if reading from file git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@84 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Client/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.43.0