Commit ce2b66f8 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

More explicit class name

parent 301f9263
...@@ -6,14 +6,14 @@ import argparse ...@@ -6,14 +6,14 @@ import argparse
from .nbcourse import NbCourse, DEFAULT_CONFIG_FILE from .nbcourse import NbCourse, DEFAULT_CONFIG_FILE
from .initialize import initialize from .initialize import initialize
from pathlib import Path from pathlib import Path
from .mydoit import MyDoit, ClassTaskLoader from .mydoit import MyDoitHelp, ClassTaskLoader
def get_help_epilog() -> str: 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(task_loader=loader).get_help() return MyDoitHelp(task_loader=loader).get_help()
def main(): def main():
......
...@@ -30,7 +30,7 @@ class MyHelp(Help): ...@@ -30,7 +30,7 @@ class MyHelp(Help):
return msg return msg
class MyDoit(DoitMain): class MyDoitHelp(DoitMain):
"""Extend DoitMain class to add a get_help() function""" """Extend DoitMain class to add a get_help() function"""
def get_help(self): def get_help(self):
......
Markdown is supported
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