summaryrefslogtreecommitdiff
path: root/examples/pirate.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2018-05-23 22:28:03 -0600
committerkotfu <kotfu@kotfu.net>2018-05-23 22:28:03 -0600
commit496933d7053f7a5de57e89b3e274db51c36de4f4 (patch)
treed4699a7d853f3fcb1ac8692b3396e55fcca81f9b /examples/pirate.py
parentda0e211d40f89c36f81752ac0de3a971a86d8642 (diff)
downloadcmd2-git-496933d7053f7a5de57e89b3e274db51c36de4f4.tar.gz
Fix import stragglers
Diffstat (limited to 'examples/pirate.py')
-rwxr-xr-xexamples/pirate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pirate.py b/examples/pirate.py
index 9da634aa..34906a9f 100755
--- a/examples/pirate.py
+++ b/examples/pirate.py
@@ -16,7 +16,7 @@ class Pirate(cmd2.Cmd):
def __init__(self):
self.default_to_shell = True
self.multiline_commands = ['sing']
- self.terminators = Cmd.terminators + ['...']
+ self.terminators = self.terminators + ['...']
self.songcolor = 'blue'
# Add stuff to settable and/or shortcuts before calling base class initializer
@@ -75,7 +75,7 @@ class Pirate(cmd2.Cmd):
yo_parser.add_argument('-c', '--commas', action='store_true', help='Intersperse commas')
yo_parser.add_argument('beverage', help='beverage to drink with the chant')
- @cmd.with_argparser(yo_parser)
+ @cmd2.with_argparser(yo_parser)
def do_yo(self, args):
"""Compose a yo-ho-ho type chant with flexible options."""
chant = ['yo'] + ['ho'] * args.ho