Skip to content

Commit ccc236f

Browse files
committed
Fixed documentation in regards to CompletionItem
1 parent 7440079 commit ccc236f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/features/completion.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ CompletionItem For Providing Extra Context
6969
When tab-completing things like a unique ID from a database, it can often be
7070
beneficial to provide the user with some extra context about the item being
7171
completed, such as a description. To facilitate this, ``cmd2`` defines the
72-
``CompletionItem`` class which can be used in combination with
73-
``choices_function`` or ``choices_method``.
72+
``CompletionItem`` class which can be returned from any of the 4 completion
73+
functions: ``choices_function``, ``choices_method``, ``completion_function``,
74+
or ``completion_method``.
7475

7576
.. autoclass:: cmd2.argparse_custom.CompletionItem
7677
:members:

0 commit comments

Comments
 (0)