diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-01 12:30:08 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-01 12:30:08 -0400 |
commit | 18207f62d4f70240e79935507bcde7cbb22212a7 (patch) | |
tree | adf847a7cb1ec5044ee65279e62d937e9bc05d20 /cmd2/cmd2.py | |
parent | 80950bfa4216ed20df5d63f1ebe63bac5b3746b4 (diff) | |
download | cmd2-git-18207f62d4f70240e79935507bcde7cbb22212a7.tar.gz |
Small refactor and documentation updates
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index a10219b1..0ca9f358 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1617,11 +1617,7 @@ class Cmd(cmd.Cmd): argparser: argparse.ArgumentParser) -> List[str]: """Default completion function for argparse commands.""" completer = AutoCompleter(argparser, self) - tokens, _ = self.tokens_for_completion(line, begidx, endidx) - if not tokens: - return [] - return completer.complete_command(tokens, text, line, begidx, endidx) def get_all_commands(self) -> List[str]: |