summaryrefslogtreecommitdiff
path: root/examples/pirate.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2020-02-06 16:39:43 -0700
committerkotfu <kotfu@kotfu.net>2020-02-06 16:39:43 -0700
commit87826cc7d2186cee0fbdf256756dcedb0d69e919 (patch)
tree1d4dfaa7d61606ea9cd531356ff334fc65b53b31 /examples/pirate.py
parentbf3dc169c047acda1c1cf505e8cd0e9e46d4b4cf (diff)
parentc7ac2e965d025806ce5baddfc718814e3e58d639 (diff)
downloadcmd2-git-87826cc7d2186cee0fbdf256756dcedb0d69e919.tar.gz
Merge branch 'master' into doc_streamline
# Conflicts: # docs/features/settings.rst
Diffstat (limited to 'examples/pirate.py')
-rwxr-xr-xexamples/pirate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pirate.py b/examples/pirate.py
index eda3994e..acbab17c 100755
--- a/examples/pirate.py
+++ b/examples/pirate.py
@@ -25,7 +25,7 @@ class Pirate(cmd2.Cmd):
self.songcolor = 'blue'
# Make songcolor settable at runtime
- self.settable['songcolor'] = 'Color to ``sing`` in (black/red/green/yellow/blue/magenta/cyan/white)'
+ self.add_settable(cmd2.Settable('songcolor', str, 'Color to ``sing``', choices=cmd2.ansi.FG_COLORS))
# prompts and defaults
self.gold = 0