--nolock mode to ignore locked files, closes #1744

This commit is contained in:
Simon Willison 2022-05-17 12:40:05 -07:00
commit 3508bf7875
5 changed files with 15 additions and 1 deletions

View file

@ -452,6 +452,11 @@ def uninstall(packages, yes):
is_flag=True,
help="Enable cross-database joins using the /_memory database",
)
@click.option(
"--nolock",
is_flag=True,
help="Ignore locking, open locked files in read-only mode",
)
@click.option(
"--ssl-keyfile",
help="SSL key file",
@ -486,6 +491,7 @@ def serve(
open_browser,
create,
crossdb,
nolock,
ssl_keyfile,
ssl_certfile,
return_instance=False,
@ -545,6 +551,7 @@ def serve(
version_note=version_note,
pdb=pdb,
crossdb=crossdb,
nolock=nolock,
)
# if files is a single directory, use that as config_dir=