diff options
author | kotfu <kotfu@kotfu.net> | 2020-02-22 12:59:01 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2020-02-22 12:59:01 -0700 |
commit | bd95a11998f338dda53ed79fef46e2801b89f47e (patch) | |
tree | 07d9e2a1e653bb0124b039718ddd422511a8a458 /docs/features/completion.rst | |
parent | f5806d06e0c453c189c99a1dce5ef98208c4d8cf (diff) | |
download | cmd2-git-bd95a11998f338dda53ed79fef46e2801b89f47e.tar.gz |
Add argparse stuff to api
Diffstat (limited to 'docs/features/completion.rst')
-rw-r--r-- | docs/features/completion.rst | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/features/completion.rst b/docs/features/completion.rst index b7e9ba5e..083178dc 100644 --- a/docs/features/completion.rst +++ b/docs/features/completion.rst @@ -69,12 +69,9 @@ CompletionItem For Providing Extra Context When tab completing things like a unique ID from a database, it can often be beneficial to provide the user with some extra context about the item being completed, such as a description. To facilitate this, ``cmd2`` defines the -``CompletionItem`` class which can be returned from any of the 4 completion -functions: ``choices_function``, ``choices_method``, ``completion_function``, -or ``completion_method``. - -.. autoclass:: cmd2.argparse_custom.CompletionItem - :members: +:class:`cmd2.argparse_custom.CompletionItem` class which can be returned from +any of the 4 completion functions: ``choices_function``, ``choices_method``, +``completion_function``, or ``completion_method``. See the argparse_completion_ example or the implementation of the built-in **set** command for demonstration of how this is used. |