There are no restrictions for documenting command aliases - they are usually quite simple, and "help" works on them, showing what they expand to, but if you define a command in python, you can add documentation to this command. For instance,
(lldb) script Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D. >>> def say_hello(debugger, command, result, dict): ... print 'hello!' ... description = '''This command says hello.''' ... usage = 'usage: say_hello' ... >>> ^D (lldb) command script add -f say_hello say_hello (lldb) say_hello hello! (lldb) help say_hello Run Python function say_hello This command takes 'raw' input (no need to quote stuff). Syntax: say_hello (lldb)
Pay attention to the fourth line "...", in which I pressed the return button on an empty line.
For more information about python scripts in lldb see http://lldb.llvm.org/python-reference.html
But no, the answer to your question is that today you cannot document the command alias.
source share