diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-02-18 10:50:53 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-18 10:50:53 -0500 | 
| commit | 06aaf962689840631325c70ea7e9056d176c7f67 (patch) | |
| tree | b4c509a8c51503a62b0d0f347063a0e54a6c5f92 /examples/modular_commands/commandset_complex.py | |
| parent | 30680704c4a42d9fc83062d8801666f0bd862412 (diff) | |
| parent | 0c296ae041761f03b6182a8dc8c3d165898fe49c (diff) | |
| download | cmd2-git-06aaf962689840631325c70ea7e9056d176c7f67.tar.gz | |
Merge pull request #1055 from python-cmd2/2.0
Merging in 2.0 branch
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 4905265a..f8d9dca9 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') @@ -46,7 +43,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') | 
