]> Nishi Git Mirror - dataworks.git/commitdiff
hide .help if reading from file
authornishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 22 May 2024 23:25:10 +0000 (23:25 +0000)
committernishi <nishi@d4a5a174-5a4a-5b4b-b672-37683c10d7d5>
Wed, 22 May 2024 23:25:10 +0000 (23:25 +0000)
git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@84 d4a5a174-5a4a-5b4b-b672-37683c10d7d5

Client/main.c

index c7bcdf0fdd18ba3f9f0300d0a5a74fd97d7caab0..f0b27041af11accd7bdb014d71c933d8a6555414 100644 (file)
@@ -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);