diff options
author | shane <shane@noemail.net> | 2009-10-24 02:06:14 +0000 |
---|---|---|
committer | shane <shane@noemail.net> | 2009-10-24 02:06:14 +0000 |
commit | f69573d33eb98a6260401b7d041ca618f19f9126 (patch) | |
tree | 1cc73dafff4625bf9ca63b7e24590dbb13087270 /src | |
parent | 86f5bdbe59729fb6f1b245b4d98a3b854b2cdad3 (diff) | |
download | sqlite-f69573d33eb98a6260401b7d041ca618f19f9126.tar.gz sqlite-f69573d33eb98a6260401b7d041ca618f19f9126.zip |
In shell, modified to not print informational messages during startup while in "batch mode".
Ticket [2cb66577f6].
FossilOrigin-Name: e3898e25cf0ea870612eeaca6af2396f0eab0e07
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c index bd492394f..b4545817d 100644 --- a/src/shell.c +++ b/src/shell.c @@ -3356,6 +3356,13 @@ int main(int argc, char **argv){ }else if( strcmp(argv[i],"-init")==0 ){ i++; zInitFile = argv[i]; + /* Need to check for batch mode here to so we can avoid printing + ** informational messages (like from process_sqliterc) before + ** we do the actual processing of arguments later in a second pass. + */ + }else if( strcmp(argv[i],"-batch")==0 ){ + i++; + stdin_is_interactive = 0; } } if( i<argc ){ |