diff options
author | kotfu <kotfu@kotfu.net> | 2020-02-22 12:20:10 -0700 |
---|---|---|
committer | kotfu <kotfu@kotfu.net> | 2020-02-22 12:20:10 -0700 |
commit | 375776e8a0281a47afa2846a19687206c5f9fee1 (patch) | |
tree | 3c57afb8589b229cef859b11c98f38c654b9275b /cmd2 | |
parent | e21d197e99081efb5328a00dacd0fe16251bd792 (diff) | |
download | cmd2-git-375776e8a0281a47afa2846a19687206c5f9fee1.tar.gz |
Make build_settables a private method.
Diffstat (limited to 'cmd2')
-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 dbb1c766..b475ac67 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -192,7 +192,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 = '> ' @@ -390,8 +390,8 @@ class Cmd(cmd.Cmd): except KeyError: raise KeyError(name + " is not a settable parameter") - def build_settables(self): - """Populates self.add_settable with parameters that can be edited via the set command""" + def _build_settables(self): + """Construct the default settings""" self.add_settable(Settable('allow_style', str, 'Allow ANSI text style sequences in output (valid values: ' '{}, {}, {})'.format(ansi.STYLE_TERMINAL, |