diff options
-rw-r--r-- | cmd2/cmd2.py | 3 | ||||
-rw-r--r-- | docs/api/cmd.rst | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 701684c2..ad5d09de 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2554,7 +2554,8 @@ class Cmd(cmd.Cmd): self.use_rawinput is True and sys.stdin is a terminal. Defaults to CompletionMode.NONE. - The following optional settings apply when completion_mode is CompletionMode.CUSTOM. + The following optional settings apply when completion_mode is CompletionMode.CUSTOM: + :param preserve_quotes: if True, then quoted tokens will keep their quotes when processed by ArgparseCompleter. This is helpful in cases when you're tab completing flag-like tokens (e.g. -o, --option) and you don't want them to be diff --git a/docs/api/cmd.rst b/docs/api/cmd.rst index 6fdfbf27..ced49e3b 100644 --- a/docs/api/cmd.rst +++ b/docs/api/cmd.rst @@ -1,6 +1,10 @@ cmd2.Cmd ======== +.. autoclass:: cmd2.CompletionMode + :members: + :undoc-members: + .. autoclass:: cmd2.Cmd :members: |