diff options
author | kotfu <kotfu@kotfu.net> | 2020-02-22 12:22:35 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2020-02-22 12:22:35 -0700 |
commit | f5806d06e0c453c189c99a1dce5ef98208c4d8cf (patch) | |
tree | 72722498e07da1b2e75680aa5a4ddb19dbf2f034 /docs/api/cmd.rst | |
parent | 375776e8a0281a47afa2846a19687206c5f9fee1 (diff) | |
download | cmd2-git-f5806d06e0c453c189c99a1dce5ef98208c4d8cf.tar.gz |
Revisions and improvements for hooks and plugins
Diffstat (limited to 'docs/api/cmd.rst')
-rw-r--r-- | docs/api/cmd.rst | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/docs/api/cmd.rst b/docs/api/cmd.rst index 34c0dcf7..3fcd3352 100644 --- a/docs/api/cmd.rst +++ b/docs/api/cmd.rst @@ -24,8 +24,19 @@ cmd2.Cmd .. attribute:: prompt - The prompt issued to solicit input. - Default: ``(Cmd)``. + The prompt issued to solicit input. The default value is ``(Cmd)``. + See :ref:`features/prompt:Prompt` for more information. + + .. attribute:: continuation_prompt + + The prompt issued to solicit input for the 2nd and subsequent lines + of a :ref:`multiline command <features/multiline_commands:Multiline Commands>` + + .. attribute:: echo + + If ``True``, output the prompt and user input before executing the command. + When redirecting a series of commands to an output file, this allows you to + see the command in the output. .. attribute:: settable @@ -47,3 +58,8 @@ cmd2.Cmd An instance of :class:`cmd2.parsing.StatementParser` initialized and configured appropriately for parsing user input. + + .. attribute:: intro + + Set an introduction message which is displayed to the user before + the :ref:`features/hooks:Command Processing Loop` begins. |