Default values for --attach and --param options

This commit is contained in:
Matej Urbas 2021-11-05 21:55:13 +00:00
commit 095fc64c53

View file

@ -1136,6 +1136,7 @@ def drop_view(path, view, ignore, load_extension):
"--attach", "--attach",
type=(str, click.Path(file_okay=True, dir_okay=False, allow_dash=False)), type=(str, click.Path(file_okay=True, dir_okay=False, allow_dash=False)),
multiple=True, multiple=True,
default=(),
help="Additional databases to attach - specify alias and filepath", help="Additional databases to attach - specify alias and filepath",
) )
@output_options @output_options
@ -1145,6 +1146,7 @@ def drop_view(path, view, ignore, load_extension):
"--param", "--param",
multiple=True, multiple=True,
type=(str, str), type=(str, str),
default=(),
help="Named :parameters for SQL query", help="Named :parameters for SQL query",
) )
@load_extension_option @load_extension_option