Skip to content

Commit afed344

Browse files
committed
A couple minor updates based on PR comments
1 parent 488bb23 commit afed344

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/features/modular_commands.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ class ExampleApp(cmd2.Cmd):
7272
"""
7373
CommandSets are automatically loaded. Nothing needs to be done.
7474
"""
75-
def __init__(self, *args, auto_load_commands=True, **kwargs):
76-
super().__init__(*args, **kwargs)
75+
def __init__(self, *args, **kwargs):
76+
super().__init__(*args, auto_load_commands=True, **kwargs)
7777

7878
def do_something(self, arg):
7979
self.poutput('this is the something command')
@@ -106,9 +106,9 @@ class ExampleApp(cmd2.Cmd):
106106
"""
107107
CommandSets with initializer parameters are provided in the initializer
108108
"""
109-
def __init__(self, *args, auto_load_commands=True, **kwargs):
109+
def __init__(self, *args, **kwargs):
110110
# gotta have this or neither the plugin or cmd2 will initialize
111-
super().__init__(*args, **kwargs)
111+
super().__init__(*args, auto_load_commands=True, **kwargs)
112112

113113
def do_something(self, arg):
114114
self.last_result = 5

0 commit comments

Comments
 (0)