From b2302875c97f723e02cc39136d0b20fd706369aa Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 28 May 2021 20:55:46 -0700 Subject: [PATCH] Document --type option better, closes #255 --- sqlite_utils/cli.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sqlite_utils/cli.py b/sqlite_utils/cli.py index 011935a31..960d34c44 100644 --- a/sqlite_utils/cli.py +++ b/sqlite_utils/cli.py @@ -1276,9 +1276,12 @@ def triggers( @click.argument("table") @click.option( "--type", - type=(str, str), + type=( + str, + click.Choice(["INTEGER", "TEXT", "FLOAT", "BLOB"], case_sensitive=False), + ), 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(