To ensure consistency in parsing, we need to do a bit more refactoring:
- refactor tab completion to use StatementParser instead of parseline()
- refactor Cmd2.parseline() to use StatementParser.parse()
These refactoring tasks involve a complex issue related to submenu support, namely submenu instances don't have access to the self.command_parser attribute.
To ensure consistency in parsing, we need to do a bit more refactoring:
These refactoring tasks involve a complex issue related to submenu support, namely submenu instances don't have access to the
self.command_parserattribute.