Fix command names using undersore instead of hyphens in completion for the shell

This commit is contained in:
Kovid Goyal 2020-05-24 21:34:34 +05:30
parent 0d704f3715
commit 84f914742b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -25,7 +25,7 @@
@lru_cache(maxsize=2)
def match_commands() -> Tuple[str, ...]:
all_commands = tuple(sorted(all_command_names()))
all_commands = tuple(sorted(x.replace('_', '-') for x in all_command_names()))
return tuple(sorted(all_commands + ('exit', 'help', 'quit')))