diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 420ef396..f3827667 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2005,12 +2005,12 @@ class Cmd(cmd.Cmd): else: func = self.cmd_func(statement.command) if func: - stop = func(statement) - # Since we have a valid command store it in the history if statement.command not in self.exclude_from_history: self.history.append(statement.raw) + stop = func(statement) + else: self.default(statement) stop = False |