summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2019-07-14 14:11:11 -0700
committerAmjith Ramanujam <amjith.r@gmail.com>2019-07-14 14:11:11 -0700
commit9e76a6d800ec734ab748f0e82dc967010301231a (patch)
tree04b1863213fd9544b474b5f69a1b96ce94523190
parent2cd7ed8305c534cef9418d72ec0d056171937140 (diff)
Add describe and desc as aliases for .schema.
-rw-r--r--litecli/packages/special/dbcommands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/litecli/packages/special/dbcommands.py b/litecli/packages/special/dbcommands.py
index fd80243..eefe7e6 100644
--- a/litecli/packages/special/dbcommands.py
+++ b/litecli/packages/special/dbcommands.py
@@ -15,8 +15,8 @@ log = logging.getLogger(__name__)
@special_command(
".tables",
- "\\dt[+] [table]",
- "List or describe tables.",
+ "\\dt",
+ "List tables.",
arg_type=PARSED_QUERY,
case_sensitive=True,
aliases=("\\dt",),
@@ -61,7 +61,7 @@ def list_tables(cur, arg=None, arg_type=PARSED_QUERY, verbose=False):
"The complete schema for the database or a single table",
arg_type=PARSED_QUERY,
case_sensitive=True,
- aliases=("\\d",),
+ aliases=("\\d", "describe", "desc"),
)
def show_schema(cur, arg=None, **_):
if arg: