summaryrefslogtreecommitdiff
path: root/cmd2/parsing.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-04-29 12:44:38 -0600
committerkotfu <kotfu@kotfu.net>2018-04-29 12:44:38 -0600
commit83fd707dcf9916c9f483e4417a2c3b2b083c8da2 (patch)
tree54152104564c751554c3b79d32d507ec152ed2ff /cmd2/parsing.py
parentfbc6d0b39fa1e84ea3de3b38b700c45189146429 (diff)
downloadcmd2-git-83fd707dcf9916c9f483e4417a2c3b2b083c8da2.tar.gz
outputTo -> output_to
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r--cmd2/parsing.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py
index 9b548716..0ba0736d 100644
--- a/cmd2/parsing.py
+++ b/cmd2/parsing.py
@@ -40,7 +40,7 @@ class Statement(str):
self.suffix = None
self.pipe_to = None
self.output = None
- self.outputTo = None
+ self.output_to = None
@property
def command_and_args(self):
@@ -186,11 +186,11 @@ class StatementParser():
# check for output redirect
output = None
- outputTo = None
+ output_to = None
try:
output_pos = tokens.index('>')
output = '>'
- outputTo = ' '.join(tokens[output_pos+1:])
+ output_to = ' '.join(tokens[output_pos+1:])
# remove all the tokens after the output redirect
tokens = tokens[:output_pos]
except ValueError:
@@ -199,7 +199,7 @@ class StatementParser():
try:
output_pos = tokens.index('>>')
output = '>>'
- outputTo = ' '.join(tokens[output_pos+1:])
+ output_to = ' '.join(tokens[output_pos+1:])
# remove all tokens after the output redirect
tokens = tokens[:output_pos]
except ValueError:
@@ -241,7 +241,7 @@ class StatementParser():
result.terminator = terminator
result.inputFrom = inputFrom
result.output = output
- result.outputTo = outputTo
+ result.output_to = output_to
result.pipe_to = pipe_to
result.suffix = suffix
result.multiline_command = multiline_command