From 6c00a01526f56a6b6071e8e0a529eafee4ff60ea Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Thu, 21 Feb 2013 18:38:46 +0000 Subject: [PATCH] Mark the command as failed if parsing fails. llvm-svn: 175776 --- lldb/examples/python/cmdtemplate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/examples/python/cmdtemplate.py b/lldb/examples/python/cmdtemplate.py index eec1d37..dc8e6b1 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: -- 2.7.4