dbcli / litecli

CLI for SQLite Databases with auto-completion and syntax highlighting
https://litecli.com
BSD 3-Clause "New" or "Revised" License
2.06k stars 67 forks source link

Fix: 'describe' command doesn't appear in 'help' #162

Closed Kevin-Prichard closed 10 months ago

Kevin-Prichard commented 10 months ago

Fix for the 'describe' command not appearing when user requests 'help'.

Description

'describe' doesn't appear because that string 'describe' also appears in describe()'s aliases. This causes show_help() to skip it altogether, because aliases are added to COMMANDS with 'hidden=True' (in special/main.py:register_special_command()), which overwrites the original 'describe' entry in COMMANDS.

Fix: I removed 'describe' from describe()'s aliases list

Checklist

amjith commented 10 months ago

Thank you for the fix. 😄