From 095fc64c5399d75d44d304571a21293d06d817f0 Mon Sep 17 00:00:00 2001 From: Matej Urbas Date: Fri, 5 Nov 2021 21:55:13 +0000 Subject: [PATCH] Default values for `--attach` and `--param` options --- sqlite_utils/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlite_utils/cli.py b/sqlite_utils/cli.py index b29314e..6240fd1 100644 --- a/sqlite_utils/cli.py +++ b/sqlite_utils/cli.py @@ -1136,6 +1136,7 @@ def drop_view(path, view, ignore, load_extension): "--attach", type=(str, click.Path(file_okay=True, dir_okay=False, allow_dash=False)), multiple=True, + default=(), help="Additional databases to attach - specify alias and filepath", ) @output_options @@ -1145,6 +1146,7 @@ def drop_view(path, view, ignore, load_extension): "--param", multiple=True, type=(str, str), + default=(), help="Named :parameters for SQL query", ) @load_extension_option