Skip to content

Commit b8bd4b1

Browse files
committed
Example now working
1 parent 9083237 commit b8bd4b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def complete_say(self, text, line, begidx, endidx):
4343
class SecondLevel(cmd2.Cmd):
4444
"""To be used as a second level command class. """
4545
def __init__(self, *args, **kwargs):
46-
super().__init__(self, *args, **kwargs)
46+
super().__init__(*args, **kwargs)
4747
self.prompt = '2ndLevel '
4848
self.top_level_attr = None
4949
self.second_level_attr = 987654321
@@ -77,7 +77,7 @@ class TopLevel(cmd2.Cmd):
7777
"""To be used as the main / top level command class that will contain other submenus."""
7878

7979
def __init__(self, *args, **kwargs):
80-
super().__init__(self, *args, **kwargs)
80+
super().__init__(*args, **kwargs)
8181
self.prompt = 'TopLevel '
8282
self.top_level_attr = 123456789
8383

0 commit comments

Comments
 (0)