-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Description
preparse() and postparse() methods exist in cmd2.Cmd and the docstrings say they get called before and after the user input is parsed. Same methods are referenced in hooks.rst. However, these two methods are never called the command processing loop in onecmd_plus_hooks().
We need to either call these methods, or remove them from the code and the documentation.
If we decide to call these methods, we will have to make a decision about when the right time to call preparse(), because on a multiline command, the line can be parsed multiple times.
postparse() would be called at the same place as the existing postparsing_precmd() hook.
Reactions are currently unavailable