diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-08-23 13:12:46 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-08-23 13:12:46 -0400 |
commit | 11e3eabbff8f80c9c85c04b7e9d6071246856bcf (patch) | |
tree | 315198fc5df17fc42b19536227a0232f6be165e6 /cmd2/cmd2.py | |
parent | 06163734b94b71ce52938f27b5718bd66357553a (diff) | |
download | cmd2-git-11e3eabbff8f80c9c85c04b7e9d6071246856bcf.tar.gz |
Removed Statement.args since it was redundant. Replaced with already parsed list of args with quotes preserved.
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 83a5a7c8..be672465 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1717,7 +1717,7 @@ class Cmd(cmd.Cmd): :return: tuple containing (command, args, line) """ statement = self.statement_parser.parse_command_only(line) - return statement.command, statement.args, statement.command_and_args + return statement.command, statement, statement.command_and_args def onecmd_plus_hooks(self, line: str) -> bool: """Top-level function called by cmdloop() to handle parsing a line and running the command and all of its hooks. |