diff options
Diffstat (limited to 'examples/modular_commands/commandset_complex.py')
| -rw-r--r-- | examples/modular_commands/commandset_complex.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/modular_commands/commandset_complex.py b/examples/modular_commands/commandset_complex.py index a9c39e55..7ab84ac3 100644 --- a/examples/modular_commands/commandset_complex.py +++ b/examples/modular_commands/commandset_complex.py @@ -10,9 +10,6 @@ from typing import ( ) import cmd2 -from cmd2 import ( - utils, -) @cmd2.with_default_category('Fruits') @@ -45,7 +42,7 @@ class CommandSetA(cmd2.CommandSet): self._cmd.poutput(', '.join(['{}'] * len(args)).format(*args)) def complete_durian(self, text: str, line: str, begidx: int, endidx: int) -> List[str]: - return utils.basic_complete(text, line, begidx, endidx, ['stinks', 'smells', 'disgusting']) + return self._cmd.basic_complete(text, line, begidx, endidx, ['stinks', 'smells', 'disgusting']) elderberry_parser = cmd2.Cmd2ArgumentParser() elderberry_parser.add_argument('arg1') |
