query: add --warn-exceptions, dateparser, docs (#290)

* 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:
seanbreckenridge 2023-04-17 16:15:35 -07:00 committed by GitHub
parent 82bc51d9fc
commit 7a32302d66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 407 additions and 24 deletions

1
.gitignore vendored
View file

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