diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-23 23:59:53 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-23 23:59:53 -0400 |
commit | 7f6dad1daa3626598a38a16ac373b9a8f4e472da (patch) | |
tree | ce8036bd915451f6993c13e5fc41775d42e8ced7 /cmd2/parsing.py | |
parent | 8ed685e54d897b00666581a07f0b889588a28bb1 (diff) | |
download | cmd2-git-7f6dad1daa3626598a38a16ac373b9a8f4e472da.tar.gz |
Removed restriction on macros named after non-multiline commands
Added unit tests
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r-- | cmd2/parsing.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index 5c0bec06..dfa248e9 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -529,8 +529,7 @@ class StatementParser: suffix=suffix, pipe_to=pipe_to, output=output, - output_to=output_to, - ) + output_to=output_to) return statement def parse_command_only(self, rawinput: str, *, expand: bool = True) -> Statement: @@ -595,8 +594,7 @@ class StatementParser: statement = Statement(args, raw=rawinput, command=command, - multiline_command=multiline_command, - ) + multiline_command=multiline_command) return statement def get_command_arg_list(self, command_name: str, to_parse: Union[Statement, str], |