diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-26 13:04:16 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-06-26 13:04:16 -0400 |
commit | 9f07daaff4763989c89ab51f64e190dc5ba825fe (patch) | |
tree | 182b8de91e9e564a2428471eee2491edeca9258b /examples | |
parent | cd396d3ed9c2ea5aafa7f42d7396b4f0f6cd7941 (diff) | |
download | cmd2-git-9f07daaff4763989c89ab51f64e190dc5ba825fe.tar.gz |
Changed signature of style() to allow for simpler calling and overriding of settings in a provided TextStyle
Diffstat (limited to 'examples')
-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 fad6e2c9..eda3994e 100755 --- a/examples/pirate.py +++ b/examples/pirate.py @@ -70,7 +70,7 @@ class Pirate(cmd2.Cmd): def do_sing(self, arg): """Sing a colorful song.""" - self.poutput(cmd2.ansi.style(arg, cmd2.ansi.TextStyle(fg=self.songcolor))) + self.poutput(cmd2.ansi.style(arg, fg=self.songcolor)) yo_parser = argparse.ArgumentParser() yo_parser.add_argument('--ho', type=int, default=2, help="How often to chant 'ho'") |