dbcli / litecli

CLI for SQLite Databases with auto-completion and syntax highlighting
https://litecli.com
BSD 3-Clause "New" or "Revised" License
2.06k stars 67 forks source link

Add support for the `--wrap` and `--wordwrap` options from sqlite3 #136

Open daviewales opened 2 years ago

daviewales commented 2 years ago

The sqlite3 cli has additional options for the .mode command which enable wrapping of text within columns if it exceeds a given width.

For example:

.mode --wrap 40 --wordwrap

This would cause text in columns which are more than 40 characters wide to be wrapped within the column.

So far as I can tell, while litecli supports the .mode command, it does not support the additional --wrap and --wordwrap options. It would be nice if support for these could be added. (There is also -ww as an alias for --wordwrap.)