summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-23 16:35:17 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-04-23 16:35:17 -0400
commit5fd8e00010e068eb0632b6cb20860a18774181a5 (patch)
tree89d2613b84e00c608c91fbf9ee1f401678cdae9a /cmd2/utils.py
parentecf154f1b13e41644fefd3db624aae1d8c1e0d2a (diff)
downloadcmd2-git-5fd8e00010e068eb0632b6cb20860a18774181a5.tar.gz
Documented CompletionError class
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r--cmd2/utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py
index 3fd9e3ac..5a4fdbf7 100644
--- a/cmd2/utils.py
+++ b/cmd2/utils.py
@@ -74,12 +74,12 @@ def str_to_bool(val: str) -> bool:
class CompletionError(Exception):
"""
- Raised during tab completion operations to report any sort of error you want printed by the ArgparseCompleter
- This can also be used just to display a message, even if it's not an error. ArgparseCompleter raises
- CompletionErrors to display tab completion hints and sets apply_style to False so hints aren't colored
- like error text.
+ Raised during tab completion operations to report any sort of error you want printed. This can also be used
+ just to display a message, even if it's not an error. For instance, ArgparseCompleter raises CompletionErrors
+ to display tab completion hints and sets apply_style to False so hints aren't colored like error text.
Example use cases
+
- Reading a database to retrieve a tab completion data set failed
- A previous command line argument that determines the data set being completed is invalid
- Tab completion hints