New help for --lines and --all and --convert and --import, refs #356

This commit is contained in:
Simon Willison 2022-01-05 17:32:40 -08:00
commit 9e286cc6d2
2 changed files with 81 additions and 19 deletions

View file

@ -1029,7 +1029,7 @@ This supports nested imports as well, for example to use `ElementTree <https://d
'xml.etree.ElementTree.fromstring(value).attrib["title"]' \
--import=xml.etree.ElementTree
Your code will be automatically wrapped in a function, but you can also define a function called `convert(value)` which will be called, if available::
Your code will be automatically wrapped in a function, but you can also define a function called ``convert(value)`` which will be called, if available::
$ sqlite-utils convert content.db articles headline '
def convert(value):