Mark the command as failed if parsing fails.
authorJim Ingham <jingham@apple.com>
Thu, 21 Feb 2013 18:38:46 +0000 (18:38 +0000)
committerJim Ingham <jingham@apple.com>
Thu, 21 Feb 2013 18:38:46 +0000 (18:38 +0000)
llvm-svn: 175776

lldb/examples/python/cmdtemplate.py

index eec1d37..dc8e6b1 100644 (file)
@@ -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: