mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-29 05:14:28 +02:00
Document --type option better, closes #255
This commit is contained in:
parent
2f3371ecb1
commit
b2302875c9
1 changed files with 5 additions and 2 deletions
|
|
@ -1276,9 +1276,12 @@ def triggers(
|
||||||
@click.argument("table")
|
@click.argument("table")
|
||||||
@click.option(
|
@click.option(
|
||||||
"--type",
|
"--type",
|
||||||
type=(str, str),
|
type=(
|
||||||
|
str,
|
||||||
|
click.Choice(["INTEGER", "TEXT", "FLOAT", "BLOB"], case_sensitive=False),
|
||||||
|
),
|
||||||
multiple=True,
|
multiple=True,
|
||||||
help="Change column type to X",
|
help="Change column type to INTEGER, TEXT, FLOAT or BLOB",
|
||||||
)
|
)
|
||||||
@click.option("--drop", type=str, multiple=True, help="Drop this column")
|
@click.option("--drop", type=str, multiple=True, help="Drop this column")
|
||||||
@click.option(
|
@click.option(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue