[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
Fri Jan 26 16:45:28 PST 2024


================
@@ -0,0 +1,315 @@
+"""
+This module implements a couple of utility classes to make writing
+lldb parsed commands more Pythonic.
+The way to use it is to make a class for you command that inherits from ParsedCommandBase.
+That will make an LLDBOVParser which you will use for your
+option definition, and to fetch option values for the current invocation
----------------
jimingham wrote:

I don't think your version is grammatical.  You use it (a) for your... and (b) to do X.  "for" doesn't work with the fetch verb form.  You could say "for your option definition and fetching"...
But I actually don't see what's unclear about this form.

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


More information about the lldb-commits mailing list