Skip to content

Commit

Permalink
Less verbosity (simonw#19)
Browse files Browse the repository at this point in the history
Only log extract_columns info when that option is passed.
  • Loading branch information
janimo authored and Simon Willison committed Dec 8, 2017
1 parent 1ed052f commit 00e8f7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csvs_to_sqlite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def cli(paths, dbname, separator, quoting, replace_tables, extract_column, fts):
extract_columns = extract_column
del extract_column

click.echo('extract_columns={}'.format(extract_columns))
if extract_columns:
click.echo('extract_columns={}'.format(extract_columns))
if dbname.endswith('.csv'):
raise click.BadParameter(
'dbname must not end with .csv'
Expand Down

0 comments on commit 00e8f7e

Please sign in to comment.