diff options
author | drh <drh@noemail.net> | 2002-04-08 02:42:57 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2002-04-08 02:42:57 +0000 |
commit | 8b32e17d262a58d9b864ebf335c605c159fec92c (patch) | |
tree | d720e2b7bcf32394255fa1741be4953ee9e2ba7c /src | |
parent | 6ed41ad735d663af037c478ac58923cd59d53ae5 (diff) | |
download | sqlite-8b32e17d262a58d9b864ebf335c605c159fec92c.tar.gz sqlite-8b32e17d262a58d9b864ebf335c605c159fec92c.zip |
Add a -column option to the sqlite command-line utility.
Patch from Matthew O. Persico. (CVS 522)
FossilOrigin-Name: 760bf568c882d7b28746b1e004309ef08d2ff4c0
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c index ad0710a8c..3e953bdae 100644 --- a/src/shell.c +++ b/src/shell.c @@ -12,7 +12,7 @@ ** This file contains code to implement the "sqlite" command line ** utility for accessing SQLite databases. ** -** $Id: shell.c,v 1.48 2002/04/04 15:10:12 drh Exp $ +** $Id: shell.c,v 1.49 2002/04/08 02:42:58 drh Exp $ */ #include <stdlib.h> #include <string.h> @@ -855,6 +855,10 @@ int main(int argc, char **argv){ data.mode = MODE_Line; argc--; argv++; + }else if( strcmp(argv[1],"-column")==0 ){ + data.mode = MODE_Column; + argc--; + argv++; }else if( argc>=3 && strcmp(argv[1],"-separator")==0 ){ sprintf(data.separator,"%.*s",(int)sizeof(data.separator)-1,argv[2]); argc -= 2; |