SQLite Forum

SQLite3.exe - How to use arguments AND remain in interactive mode?
Login
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:

```
22295c22295,22297
<       if( azCmd[i][0]=='.' ){
---
>       if( strcmp(azCmd[i],".interactive")==0 ){
>         readStdin=1;
>       }else if( azCmd[i][0]=='.' ){
22316c22318,22319
<   }else{
---
>   }
>   if( readStdin ){
```

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