Skip to content

Commit 8bbb640

Browse files
committed
Merge branch 'doc_streamline' of https://github.com/python-cmd2/cmd2 into doc_streamline
# Conflicts: # docs/features/settings.rst
2 parents 87826cc + 0d74ed6 commit 8bbb640

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/features/settings.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ reference. In your initialization code:
120120

121121
1. Create an instance attribute with a default value.
122122
2. 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

126125
Here's an example, from
127126
``examples/environment.py``:
@@ -165,8 +164,8 @@ to be available to the :ref:`features/builtin_commands:set` command.
165164
Let's say that you never want end users of your program to be able to enable
166165
full debug tracebacks to print out if an error occurs. You might want to hide
167166
the :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

0 commit comments

Comments
 (0)