File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,7 @@ reference. In your initialization code:
120120
1211211. Create an instance attribute with a default value.
1221222. Create a :class: `.Settable ` object which describes your setting.
123- 3. Pass the :class: `.Settable ` object to
124- :meth: `cmd2.cmd2.Cmd.add_settable `.
123+ 3. Pass the :class: `.Settable ` object to :meth: `cmd2.Cmd.add_settable `.
125124
126125Here's an example, from
127126``examples/environment.py ``:
@@ -165,8 +164,8 @@ to be available to the :ref:`features/builtin_commands:set` command.
165164Let's say that you never want end users of your program to be able to enable
166165full debug tracebacks to print out if an error occurs. You might want to hide
167166the :ref: `features/settings:debug ` setting. To do so, remove it from the
168- :attr: `cmd2.Cmd.settable ` dictionary after you initialize your object::
169- The :meth: `~. cmd2.Cmd.remove_settable ` convenience method makes this easy::
167+ :attr: `cmd2.Cmd.settable ` dictionary after you initialize your object.
168+ The :meth: `cmd2.Cmd.remove_settable ` convenience method makes this easy::
170169
171170 class MyApp(cmd2.Cmd):
172171
You can’t perform that action at this time.
0 commit comments