1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-05 04:30:38 +03:00

Add the -vfstrace option to the usage error message in the shell.

FossilOrigin-Name: baca45c549e1c144257ee657258939640120e094
This commit is contained in:
drh
2011-03-16 17:05:28 +00:00
parent 97ae8ffb7a
commit 2b625e243e
3 changed files with 14 additions and 12 deletions

View File

@@ -2602,6 +2602,9 @@ static const char zOptions[] =
" -nullvalue 'text' set text string for NULL values\n"
" -version show SQLite version\n"
" -vfs NAME use NAME as the default VFS\n"
#ifdef SQLITE_ENABLE_VFSTRACE
" -vfstrace enable tracing of all VFS calls\n"
#endif
;
static void usage(int showDetail){
fprintf(stderr,
@@ -2638,7 +2641,6 @@ int main(int argc, char **argv){
int i;
int rc = 0;
Argv0 = argv[0];
main_init(&data);
stdin_is_interactive = isatty(0);
@@ -2696,7 +2698,7 @@ int main(int argc, char **argv){
void *pOutArg,
int makeDefault
);
vfstrace_register("trace",0,(int(*)(const char*,void*))fputs, stderr, 1);
vfstrace_register("trace",0,(int(*)(const char*,void*))fputs,stderr,1);
#endif
}else if( strcmp(argv[i],"-vfs")==0 ){
sqlite3_vfs *pVfs = sqlite3_vfs_find(argv[++i]);