add -h support

Closes #276
This commit is contained in:
Loren McIntyre 2021-06-18 07:56:59 -07:00 committed by GitHub
commit aa652b6afe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,8 @@ import csv as csv_std
import tabulate
from .utils import file_progress, find_spatialite, sqlite3, decode_base64_values
CONTEXT_SETTINGS = dict(help_option_names=['-h','--help'])
VALID_COLUMN_TYPES = ("INTEGER", "TEXT", "FLOAT", "BLOB")
UNICODE_ERROR = """
@ -89,7 +91,7 @@ def load_extension_option(fn):
)(fn)
@click.group(cls=DefaultGroup, default="query", default_if_no_args=True)
@click.group(cls=DefaultGroup, default="query", default_if_no_args=True, context_settings=CONTEXT_SETTINGS)
@click.version_option()
def cli():
"Commands for interacting with a SQLite database"