summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_sqlite')
-rw-r--r--Completion/Unix/Command/_sqlite9
1 files changed, 6 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_sqlite b/Completion/Unix/Command/_sqlite
index 05027c603..df673894c 100644
--- a/Completion/Unix/Command/_sqlite
+++ b/Completion/Unix/Command/_sqlite
@@ -22,7 +22,7 @@ options+=(
)
output_modes=( column HTML line list )
-(( $+sqlite3 )) && output_modes+=( csv )
+(( $+sqlite3 )) && output_modes+=( csv quote )
exclusive=( $^dashes-${^output_modes:l} )
for display_opt in $output_modes ; do
# finagle the description to match the way SQLite's -help formats them
@@ -32,8 +32,8 @@ for display_opt in $output_modes ; do
done
options+=(
- $^dashes'-separator[set output field separator]:string to separate output fields:'
- $^dashes'-nullvalue[set null value string]:string for NULL values:'
+ $^dashes'-separator[set output field separator]:output field separator [|]'
+ $^dashes'-nullvalue[set text string for null values]:string'
'(- :)'$^dashes'-version[show SQLite version]'
'(- :)'$^dashes'-help[show help]'
'1:SQLite database file:_files'
@@ -42,9 +42,12 @@ options+=(
(( $+sqlite3 )) && options+=(
$^dashes'-bail[stop after hitting an error]'
+ $^dashes'-cmd[run specified command before reading stdin]:sqlite meta-command'
'(-*batch -*interactive)'$^dashes'-batch[force batch I/O]'
'(-*batch -*interactive)'$^dashes'-interactive[force interactive I/O]'
+ $^dashes'-mmap[set default mmap size]:size'
$^dashes'-stats[print memory stats before each finalize]'
+ $^dashes'-vfs[use specified default VFS]:vfs:(unix-dotfile unix-excl unix-none unix-namedsem)'
)
_arguments $options