query: add --warn-exceptions, dateparser, docs

added --warn-exceptions (like --raise-exceptions/--drop-exceptions, but
lets you pass a warn_func if you want to customize how the exceptions are
handled. By default this creates a logger in main and logs the exception

added dateparser as a fallback if its installed (it's not a strong dependency, but
I mentioned in the docs that it's useful for parsing dates/times)

added docs for query, and a few examples

--output gpx respects the --{drop,warn,raise}--exceptions flags, have
an example of that in the docs as well
This commit is contained in:
Sean Breckenridge 2023-04-15 12:09:47 -07:00
parent 82bc51d9fc
commit a58fef0d06
7 changed files with 404 additions and 24 deletions

1
.gitignore vendored
View file

@ -12,6 +12,7 @@
auto-save-list
tramp
.\#*
*.gpx
# Org-mode
.org-id-locations