forked from OSchip/llvm-project
Mentioning in the docs that Python commands can have docstrings
llvm-svn: 156018
This commit is contained in:
parent
94c71052e7
commit
19e7a185f2
|
@ -255,6 +255,13 @@ Enter your Python command(s). Type 'DONE' to end.
|
|||
<code><pre><tt>def command_function(<b>debugger</b>, <b>command</b>, <b>result</b>, <b>dict</b>):
|
||||
<font color=green># Your code goes here</font>
|
||||
</tt></pre></code>
|
||||
|
||||
Optionally, you can also provide a Python docstring, and LLDB will use it when providing help for your command, as in:
|
||||
<code><pre><tt>def command_function(<b>debugger</b>, <b>command</b>, <b>result</b>, <b>dict</b>):
|
||||
<font color=green>"""This command takes a lot of options and does many fancy things"""</font>
|
||||
<font color=green># Your code goes here</font>
|
||||
</tt></pre></code>
|
||||
|
||||
<p><table class="stats" width="620" cellspacing="0">
|
||||
<tr>
|
||||
<td class="hed" width="10%">Argument</td>
|
||||
|
|
Loading…
Reference in New Issue