================
@@ -43,7 +43,65 @@ def __call__(self, debugger, args_list, exe_ctx, result):
 will return True if the user set this option, and False if it was left at its 
default
 value.
 
-There are example commands in the lldb testsuite at:
+Custom Completions:
+
+You can also implement custom completers for your custom command, either for 
the
+arguments to your command or to the option values in your command.  If you use 
enum
+values or if your option/argument uses is one of the types we have completers 
for,
+you should not need to do this.  But if you have your own completeable types, 
or if
+you want completion of one option to be conditioned by other options on the 
command
+line, you can use this interface to take over the completion.  
+
+You can choose to add a completion for the option values defined for your 
command,
+or for the arguments, separately.  For the option values, define:
+
+def handle_option_argument_completion(self, long_option, cursor_pos):
+
----------------
medismailben wrote:

Use `.. code-block:: python`  so this gets rendered differently on the website

```suggestion

        .. code-block:: python

                def handle_option_argument_completion(self, long_option, 
cursor_pos):

```

https://github.com/llvm/llvm-project/pull/109062
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to