summaryrefslogtreecommitdiff
path: root/examples/decorator_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/decorator_example.py')
-rwxr-xr-xexamples/decorator_example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/decorator_example.py b/examples/decorator_example.py
index 4f68653e..0f5374ce 100755
--- a/examples/decorator_example.py
+++ b/examples/decorator_example.py
@@ -27,7 +27,7 @@ class CmdLineApp(cmd2.Cmd):
self.maxrepeats = 3
# Make maxrepeats settable at runtime
- self.settable['maxrepeats'] = 'Max number of `--repeat`s allowed'
+ self.add_settable(cmd2.Settable('maxrepeats', int, 'max repetitions for speak command'))
# Example of args set from the command-line (but they aren't being used here)
self._ip = ip_addr