Skip to content

Commit 375776e

Browse files
committed
Make build_settables a private method.
1 parent e21d197 commit 375776e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd2/cmd2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def __init__(self, completekey: str = 'tab', stdin=None, stdout=None, *,
192192

193193
# A dictionary mapping settable names to their Settable instance
194194
self.settables = dict()
195-
self.build_settables()
195+
self._build_settables()
196196

197197
# Use as prompt for multiline commands on the 2nd+ line of input
198198
self.continuation_prompt = '> '
@@ -390,8 +390,8 @@ def remove_settable(self, name: str) -> None:
390390
except KeyError:
391391
raise KeyError(name + " is not a settable parameter")
392392

393-
def build_settables(self):
394-
"""Populates self.add_settable with parameters that can be edited via the set command"""
393+
def _build_settables(self):
394+
"""Construct the default settings"""
395395
self.add_settable(Settable('allow_style', str,
396396
'Allow ANSI text style sequences in output (valid values: '
397397
'{}, {}, {})'.format(ansi.STYLE_TERMINAL,

0 commit comments

Comments
 (0)