Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Boileau
nbcourse
Commits
301f9263
Commit
301f9263
authored
Dec 17, 2019
by
Matthieu Boileau
Browse files
Fix get_help_epilog() error with doit 0.32.0
parent
9cb1f901
Pipeline
#5803
passed with stage
in 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nbcourse/__init__.py
View file @
301f9263
...
...
@@ -13,7 +13,7 @@ def get_help_epilog() -> str:
"""Instanciate a minimal nbcourse to return help string"""
course
=
NbCourse
()
loader
=
ClassTaskLoader
(
course
)
return
MyDoit
(
loader
).
get_help
()
return
MyDoit
(
task_loader
=
loader
).
get_help
()
def
main
():
...
...
nbcourse/mydoit.py
View file @
301f9263
...
...
@@ -38,7 +38,8 @@ class MyDoit(DoitMain):
# get list of available commands
sub_cmds
=
self
.
get_cmds
()
doit_help
=
MyHelp
(
config
=
self
.
config
,
doit_help
=
MyHelp
(
task_loader
=
self
.
task_loader
,
config
=
self
.
config
,
bin_name
=
''
,
cmds
=
sub_cmds
)
return
doit_help
.
get_usage
(
sub_cmds
.
to_dict
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment