diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-28 11:13:00 -0500 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-28 11:13:00 -0500 |
| commit | 8befe9e38f28e05daf2814e62cd751337aad044a (patch) | |
| tree | db0c7106c7146f8fcbc1daa0b1e4a110b816710c /cmd2/cmd2.py | |
| parent | 21dab8b1664dcd88a1872f394890460977e01632 (diff) | |
| download | cmd2-git-8befe9e38f28e05daf2814e62cd751337aad044a.tar.gz | |
Making build_settables() public again
Diffstat (limited to 'cmd2/cmd2.py')
| -rw-r--r-- | cmd2/cmd2.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 7bee1b6a..4ab3df3f 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -205,7 +205,7 @@ class Cmd(cmd.Cmd): # A dictionary mapping settable names to their Settable instance self.settables = dict() - self._build_settables() + self.build_settables() # Use as prompt for multiline commands on the 2nd+ line of input self.continuation_prompt = '> ' @@ -405,8 +405,8 @@ class Cmd(cmd.Cmd): except KeyError: raise KeyError(name + " is not a settable parameter") - def _build_settables(self): - """Add default settables""" + def build_settables(self): + """Create the dictionary of user-settable parameters""" self.add_settable(Settable('allow_style', str, 'Allow ANSI text style sequences in output (valid values: ' '{}, {}, {})'.format(ansi.STYLE_TERMINAL, |
