mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-27 20:34:12 +02:00
add -h support closes #276
This commit is contained in:
parent
a19ce1a4d0
commit
abbd324a21
1 changed files with 3 additions and 1 deletions
|
|
@ -16,6 +16,8 @@ import csv as csv_std
|
||||||
import tabulate
|
import tabulate
|
||||||
from .utils import file_progress, find_spatialite, sqlite3, decode_base64_values
|
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")
|
VALID_COLUMN_TYPES = ("INTEGER", "TEXT", "FLOAT", "BLOB")
|
||||||
|
|
||||||
UNICODE_ERROR = """
|
UNICODE_ERROR = """
|
||||||
|
|
@ -89,7 +91,7 @@ def load_extension_option(fn):
|
||||||
)(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()
|
@click.version_option()
|
||||||
def cli():
|
def cli():
|
||||||
"Commands for interacting with a SQLite database"
|
"Commands for interacting with a SQLite database"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue