generate command list from docstrings