1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Remove legacy cruft from shell.c. (CVS 3439)

FossilOrigin-Name: 815d8f84b317d26a3ca87405d27376e1e4493d8b
This commit is contained in:
drh
2006-09-25 13:09:22 +00:00
parent aac2f5542d
commit 2e584cd250
3 changed files with 9 additions and 13 deletions

View File

@@ -12,7 +12,7 @@
** This file contains code to implement the "sqlite" command line
** utility for accessing SQLite databases.
**
** $Id: shell.c,v 1.149 2006/09/13 20:22:02 drh Exp $
** $Id: shell.c,v 1.150 2006/09/25 13:09:23 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -239,7 +239,6 @@ struct callback_data {
** .explain ON */
char outfile[FILENAME_MAX]; /* Filename for *out */
const char *zDbFilename; /* name of the database file */
char *zKey; /* Encryption key */
};
/*
@@ -1725,9 +1724,6 @@ int main(int argc, char **argv){
}else if( strcmp(argv[i],"-init")==0 ){
i++;
zInitFile = argv[i];
}else if( strcmp(argv[i],"-key")==0 ){
i++;
data.zKey = sqlite3_mprintf("%s",argv[i]);
}
}
if( i<argc ){
@@ -1773,7 +1769,7 @@ int main(int argc, char **argv){
*/
for(i=1; i<argc && argv[i][0]=='-'; i++){
char *z = argv[i];
if( strcmp(z,"-init")==0 || strcmp(z,"-key")==0 ){
if( strcmp(z,"-init")==0 ){
i++;
}else if( strcmp(z,"-html")==0 ){
data.mode = MODE_Html;