aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-08-29 12:04:19 +0000
committerdrh <drh@noemail.net>2006-08-29 12:04:19 +0000
commit80e8be93372ece57df28978387d0e770bacaafb3 (patch)
tree4df70e8e334e8bde0fd298a15b465c7c755b6029 /src/shell.c
parentc9e0a9057ed35ce8563c73538bec2f7dc3c8256b (diff)
downloadsqlite-80e8be93372ece57df28978387d0e770bacaafb3.tar.gz
sqlite-80e8be93372ece57df28978387d0e770bacaafb3.zip
Improved built-in help in the command-line shell. Enable the
fulltext search extension in the TCL interface. (CVS 3372) FossilOrigin-Name: 9763b4bfd5f0579f9fb821899ffa8bfe650054d7
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/shell.c b/src/shell.c
index 0dbd157ef..cfa2e981e 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.146 2006/08/19 11:15:20 drh Exp $
+** $Id: shell.c,v 1.147 2006/08/29 12:04:19 drh Exp $
*/
#include <stdlib.h>
#include <string.h>
@@ -1653,12 +1653,14 @@ static const char zOptions[] =
" -separator 'x' set output field separator (|)\n"
" -nullvalue 'text' set text string for NULL values\n"
" -version show SQLite version\n"
- " -help show this text, also show dot-commands\n"
;
static void usage(int showDetail){
- fprintf(stderr, "Usage: %s [OPTIONS] FILENAME [SQL]\n", Argv0);
+ fprintf(stderr,
+ "Usage: %s [OPTIONS] FILENAME [SQL]\n"
+ "FILENAME is the name of an SQLite database. A new database is created\n"
+ "if the file does not previously exist.\n", Argv0);
if( showDetail ){
- fprintf(stderr, "Options are:\n%s", zOptions);
+ fprintf(stderr, "OPTIONS include:\n%s", zOptions);
}else{
fprintf(stderr, "Use the -help option for additional information\n");
}
@@ -1782,7 +1784,7 @@ int main(int argc, char **argv){
}else if( strcmp(z,"-version")==0 ){
printf("%s\n", sqlite3_libversion());
return 0;
- }else if( strcmp(z,"-help")==0 ){
+ }else if( strcmp(z,"-help")==0 || strcmp(z, "--help")==0 ){
usage(1);
}else{
fprintf(stderr,"%s: unknown option: %s\n", Argv0, z);