From 89f754cd4be3b5f5dc100df0bdd982383fe10b23 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 1 Aug 2021 09:50:57 -0700 Subject: [PATCH] Updated sqlite-utils convert --help, refs #251 --- sqlite_utils/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sqlite_utils/cli.py b/sqlite_utils/cli.py index 56af19e..5a09a45 100644 --- a/sqlite_utils/cli.py +++ b/sqlite_utils/cli.py @@ -1931,7 +1931,7 @@ def analyze_tables( ) @click.option("--drop", is_flag=True, help="Drop original column afterwards") @click.option("-s", "--silent", is_flag=True, help="Don't show a progress bar") -def lambda_( +def convert( db_path, table, columns, @@ -1948,8 +1948,8 @@ def lambda_( Convert columns using Python code you supply. For example: \b - $ sqlite-utils convert my.db mytable mycolumn - --code='"\\n".join(textwrap.wrap(value, 10))' + $ sqlite-utils convert my.db mytable mycolumn \\ + '"\\n".join(textwrap.wrap(value, 10))' \\ --import=textwrap "value" is a variable with the column value to be converted.