summaryrefslogtreecommitdiff
path: root/examples/colors.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/colors.py')
-rwxr-xr-xexamples/colors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/colors.py b/examples/colors.py
index bbb3b2ad..33b17e53 100755
--- a/examples/colors.py
+++ b/examples/colors.py
@@ -39,7 +39,7 @@ class CmdLineApp(cmd2.Cmd):
self.maxrepeats = 3
# Make maxrepeats settable at runtime
- self.settable['maxrepeats'] = 'max repetitions for speak command'
+ self.add_settable(cmd2.Settable('maxrepeats', int, 'max repetitions for speak command'))
# Should ANSI color output be allowed
self.allow_style = ansi.STYLE_TERMINAL