SQLite Forum

SQLite3.exe - How to use arguments AND remain in interactive mode?
As others have mentioned, there's no direct way to do this, however, you could add an `.interactive` quasi-command to the command line parser if you really want to by modifying shell.c and building it yourself:

<       if( azCmd[i][0]=='.' ){
>       if( strcmp(azCmd[i],".interactive")==0 ){
>         readStdin=1;
>       }else if( azCmd[i][0]=='.' ){
<   }else{
>   }
>   if( readStdin ){

Though, I don't know shell.c that well, there may be reasons this is a horrid idea.