diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 22:50:00 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2020-02-06 22:50:00 -0500 |
commit | e66dc6f7078e1d4928ef58ccf48f4718b61d8c35 (patch) | |
tree | efbdf93ee7c44acce04cd6758eee4c155838001f /examples/pirate.py | |
parent | ede9f3e77a59281a442227ed9b4b92e62e85d2b9 (diff) | |
download | cmd2-git-e66dc6f7078e1d4928ef58ccf48f4718b61d8c35.tar.gz |
Having two parallel datastructures each for foreground and background colors felt really clunky - now we just have one
The Enum classes are now smart and deal with it all.
Diffstat (limited to 'examples/pirate.py')
-rwxr-xr-x | examples/pirate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pirate.py b/examples/pirate.py index acbab17c..a50f9a51 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.add_settable(cmd2.Settable('songcolor', str, 'Color to ``sing``', choices=cmd2.ansi.FG_COLORS)) + self.add_settable(cmd2.Settable('songcolor', str, 'Color to ``sing``', choices=cmd2.ansi.fg.colors())) # prompts and defaults self.gold = 0 |