Skip to content

Refactor Cmd2.parseline() #380

@kotfu

Description

@kotfu

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions