Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

Kevin-Prichard
Copy link
Contributor

@Kevin-Prichard Kevin-Prichard commented Aug 25, 2023

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

  • I've added this contribution to the CHANGELOG.md file.

…command does not appear when user requests 'help'. This happens because the command string 'describe' also appears in describe()'s aliases , which causes show_help() to skip it altogether (because aliases are added to COMMANDS with 'hidden=True', and this overwrites the original 'describe' entry.) Fix is to remove 'describe' from describe()'s aliases.
@amjith amjith merged commit 5975d20 into dbcli:main Aug 25, 2023
1 of 5 checks passed
@amjith
Copy link
Member

amjith commented Aug 25, 2023

Thank you for the fix. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants