summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/cmd2.py')
-rwxr-xr-xcmd2/cmd2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index e001e75e..2cc412a9 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2669,11 +2669,11 @@ class Cmd(cmd.Cmd):
return utils.basic_complete(text, line, begidx, endidx, strs_to_match)
def complete_help_subcommand(self, text: str, line: str, begidx: int, endidx: int,
- arg_tokens: argparse.Namespace) -> List[str]:
+ arg_tokens: Dict[str, List[str]]) -> List[str]:
"""Completes the subcommand argument of help"""
# Make sure we have a command whose subcommands we will complete
- command = arg_tokens.command[0]
+ command = arg_tokens['command'][0]
if not command:
return []
@@ -2684,7 +2684,7 @@ class Cmd(cmd.Cmd):
return []
# Combine the command and its subcommand tokens for the AutoCompleter
- tokens = [command] + arg_tokens.subcommand
+ tokens = [command] + arg_tokens['subcommand']
from .argparse_completer import AutoCompleter
completer = AutoCompleter(argparser, self)