[Lldb-commits] [lldb] Add the ability to define a Python based command that uses CommandObjectParsed (PR #70734)

via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 12 14:42:50 PST 2024


================
@@ -805,19 +805,25 @@ let Command = "script add" in {
   def script_add_function : Option<"function", "f">, Group<1>,
     Arg<"PythonFunction">,
     Desc<"Name of the Python function to bind to this command name.">;
-  def script_add_class : Option<"class", "c">, Group<2>, Arg<"PythonClass">,
-  Desc<"Name of the Python class to bind to this command name.">;
+  def script_add_class : Option<"class", "c">, Groups<[2,3]>, 
----------------
jimingham wrote:

I didn't add either of these options, they predate this patch.  This would break anybody that's adding scripted commands.  I don't remember why it's this way, but I don't think we can change it.

https://github.com/llvm/llvm-project/pull/70734


More information about the lldb-commits mailing list