diff options
author | Jim Ingham <jingham@apple.com> | 2013-02-21 18:38:46 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2013-02-21 18:38:46 +0000 |
commit | 6c00a01526f56a6b6071e8e0a529eafee4ff60ea (patch) | |
tree | 6fa41952d85412e58b56f21834cf0323117d27f0 /lldb/examples/python | |
parent | ab28b9ae7324bf4cfe9c830eabcfd9f2e0ccff53 (diff) | |
download | bcm5719-llvm-6c00a01526f56a6b6071e8e0a529eafee4ff60ea.tar.gz bcm5719-llvm-6c00a01526f56a6b6071e8e0a529eafee4ff60ea.zip |
Mark the command as failed if parsing fails.
llvm-svn: 175776
Diffstat (limited to 'lldb/examples/python')
-rw-r--r-- | lldb/examples/python/cmdtemplate.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/examples/python/cmdtemplate.py b/lldb/examples/python/cmdtemplate.py index eec1d371277..dc8e6b10664 100644 --- a/lldb/examples/python/cmdtemplate.py +++ b/lldb/examples/python/cmdtemplate.py @@ -38,6 +38,7 @@ def ls(debugger, command, result, dict): try: (options, args) = parser.parse_args(command_args) except: + result.SetStatus (lldb.eReturnStatusFailed) return for arg in args: |