You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/initialization.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,6 @@ The `cmd2.Cmd` class provides a large number of public instance attributes which
33
33
34
34
Here are instance attributes of `cmd2.Cmd` which developers might wish to override:
35
35
36
-
-**bottom_toolbar**: if `True`, then a bottom toolbar will be displayed (Default: `False`)
37
36
-**broken_pipe_warning**: if non-empty, this string will be displayed if a broken pipe error occurs
38
37
-**complete_in_thread**: if `True`, then completion will run in a separate thread (Default: `True`)
39
38
-**continuation_prompt**: used for multiline commands on 2nd+ line of input
@@ -42,6 +41,8 @@ Here are instance attributes of `cmd2.Cmd` which developers might wish to overri
42
41
-**disabled_commands**: commands that have been disabled from use. This is to support commands that are only available during specific states of the application. This dictionary's keys are the command names and its values are DisabledCommand objects.
43
42
-**echo**: if `True`, each command the user issues will be repeated to the screen before it is executed. This is particularly useful when running scripts. This behavior does not occur when running a command at the prompt. (Default: `False`)
44
43
-**editor**: text editor program to use with _edit_ command (e.g. `vim`)
44
+
-**enable_bottom_toolbar**: if `True`, enables a bottom toolbar while at the main prompt. (Default: `False`)
45
+
-**enable_rprompt**: if `True`, enables a right prompt while at the main prompt. (Default: `False`)
45
46
-**exclude_from_history**: commands to exclude from the _history_ command
46
47
-**exit_code**: this determines the value returned by `cmdloop()` when exiting the application
47
48
-**help_error**: the error that prints when no help information can be found
@@ -55,6 +56,7 @@ Here are instance attributes of `cmd2.Cmd` which developers might wish to overri
55
56
-**py_bridge_name**: name by which embedded Python environments and scripts refer to the `cmd2` application by in order to call commands (Default: `app`)
56
57
-**py_locals**: dictionary that defines specific variables/functions available in Python shells and scripts (provides more fine-grained control than making everything available with **self_in_py**)
57
58
-**quiet**: if `True`, then completely suppress nonessential output (Default: `False`)
59
+
-**refresh_interval**: how often, in seconds, to automatically refresh the UI. (Default: 0.0)
58
60
-**scripts_add_to_history**: if `True`, scripts and pyscripts add commands to history (Default: `True`)
59
61
-**self_in_py**: if `True`, allow access to your application in _py_ command via `self` (Default: `False`)
60
62
-**settable**: dictionary that controls which of these instance attributes are settable at runtime using the _set_ command
0 commit comments