diff options
author | kotfu <kotfu@kotfu.net> | 2018-04-22 20:30:45 -0600 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2018-04-22 20:30:45 -0600 |
commit | 1c98fe58f126eb3222140bfcb074f3a74346e17a (patch) | |
tree | f9de797c47e4b958a71d56fcce2dd170222828fd /cmd2 | |
parent | f83154e2749d90bf4ec24c7c84b45dc0860e8b13 (diff) | |
download | cmd2-git-1c98fe58f126eb3222140bfcb074f3a74346e17a.tar.gz |
Fix default() method
Diffstat (limited to 'cmd2')
-rwxr-xr-x | cmd2/cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 4e2c053f..a124c690 100755 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2348,10 +2348,10 @@ class Cmd(cmd.Cmd): def default(self, statement): """Executed when the command given isn't a recognized command implemented by a do_* method. - :param statement: ParsedString - subclass of string including the pyparsing ParseResults + :param statement: Statement object with parsed input :return: """ - arg = statement.full_parsed_statement() + arg = statement.raw if self.default_to_shell: result = os.system(arg) # If os.system() succeeded, then don't print warning about unknown command |