mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Merge all the latest changes from trunk.
FossilOrigin-Name: b86590043e17705ada90562cf30f69b3e3ef65a4
This commit is contained in:
@ -374,6 +374,21 @@ proc do_not_use_codec {} {
|
||||
reset_db
|
||||
}
|
||||
|
||||
# Print a HELP message and exit
|
||||
#
|
||||
proc print_help_and_quit {} {
|
||||
puts {Options:
|
||||
--pause Wait for user input before continuing
|
||||
--soft-heap-limit=N Set the soft-heap-limit to N
|
||||
--maxerror=N Quit after N errors
|
||||
--verbose=(0|1) Control the amount of output. Default '1'
|
||||
--output=FILE set --verbose=2 and output to FILE. Implies -q
|
||||
-q Shorthand for --verbose=0
|
||||
--help This message
|
||||
}
|
||||
exit 1
|
||||
}
|
||||
|
||||
# The following block only runs the first time this file is sourced. It
|
||||
# does not run in slave interpreters (since the ::cmdlinearg array is
|
||||
# populated before the test script is run in slave interpreters).
|
||||
@ -483,6 +498,13 @@ if {[info exists cmdlinearg]==0} {
|
||||
error "option --verbose= must be set to a boolean or to \"file\""
|
||||
}
|
||||
}
|
||||
{.*help.*} {
|
||||
print_help_and_quit
|
||||
}
|
||||
{^-q$} {
|
||||
set cmdlinearg(output) test-out.txt
|
||||
set cmdlinearg(verbose) 2
|
||||
}
|
||||
|
||||
default {
|
||||
lappend leftover $a
|
||||
|
Reference in New Issue
Block a user