Commit 301f9263 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Fix get_help_epilog() error with doit 0.32.0

parent 9cb1f901
Pipeline #5803 passed with stage
in 35 seconds
...@@ -13,7 +13,7 @@ def get_help_epilog() -> str: ...@@ -13,7 +13,7 @@ def get_help_epilog() -> str:
"""Instanciate a minimal nbcourse to return help string""" """Instanciate a minimal nbcourse to return help string"""
course = NbCourse() course = NbCourse()
loader = ClassTaskLoader(course) loader = ClassTaskLoader(course)
return MyDoit(loader).get_help() return MyDoit(task_loader=loader).get_help()
def main(): def main():
......
...@@ -38,7 +38,8 @@ class MyDoit(DoitMain): ...@@ -38,7 +38,8 @@ class MyDoit(DoitMain):
# get list of available commands # get list of available commands
sub_cmds = self.get_cmds() sub_cmds = self.get_cmds()
doit_help = MyHelp(config=self.config, doit_help = MyHelp(task_loader=self.task_loader,
config=self.config,
bin_name='', bin_name='',
cmds=sub_cmds) cmds=sub_cmds)
return doit_help.get_usage(sub_cmds.to_dict()) return doit_help.get_usage(sub_cmds.to_dict())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment