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
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,12 @@ The `cmd2.Cmd` class provides a large number of public instance attributes which
34
34
Here are instance attributes of `cmd2.Cmd` which developers might wish to override:
35
35
36
36
-**broken_pipe_warning**: if non-empty, this string will be displayed if a broken pipe error occurs
37
-
-**complete_in_thread**: if `True`, then completion will run in a separate thread (Default: `True`)
38
37
-**continuation_prompt**: used for multiline commands on 2nd+ line of input
39
38
-**debug**: if `True`, show full stack trace on error (Default: `False`)
40
39
-**default_error**: the error that prints when a non-existent command is run
41
40
-**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.
42
41
-**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`)
43
42
-**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`)
46
43
-**exclude_from_history**: commands to exclude from the _history_ command
47
44
-**exit_code**: this determines the value returned by `cmdloop()` when exiting the application
48
45
-**help_error**: the error that prints when no help information can be found
@@ -56,7 +53,6 @@ Here are instance attributes of `cmd2.Cmd` which developers might wish to overri
56
53
-**py_bridge_name**: name by which embedded Python environments and scripts refer to the `cmd2` application by in order to call commands (Default: `app`)
57
54
-**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**)
58
55
-**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)
60
56
-**scripts_add_to_history**: if `True`, scripts and pyscripts add commands to history (Default: `True`)
61
57
-**self_in_py**: if `True`, allow access to your application in _py_ command via `self` (Default: `False`)
62
58
-**settable**: dictionary that controls which of these instance attributes are settable at runtime using the _set_ command
0 commit comments