Skip to content

Commit 7c8db71

Browse files
committed
fix(cmd2): suppress tab hint for main command completion
Suppressed the generation of a completion hint for the main command name completion. This ensures that the command list appears in the prompt-toolkit completion menu below the prompt without a redundant or distracting hint above the prompt.
1 parent d173493 commit 7c8db71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2405,6 +2405,7 @@ def complete(
24052405
metavar="COMMAND",
24062406
help="command, alias, or macro name",
24072407
choices=self._get_commands_aliases_and_macros_for_completion(),
2408+
suppress_tab_hint=True,
24082409
)
24092410
custom_settings = utils.CustomCompletionSettings(parser)
24102411

0 commit comments

Comments
 (0)