Skip to content

Commit 8f32864

Browse files
committed
Make printVersion a function
This ensures we have documentation for it
1 parent bb8cb7c commit 8f32864

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tools/pylib/_boutpp_build/backend.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,19 @@ def help():
350350
print(fmt % row)
351351

352352

353+
def printVersion():
354+
"""
355+
print the version
356+
"""
357+
print(getversion())
358+
359+
353360
todos = dict(
354361
nightly=nightly,
355362
sdist=sdist,
356363
wheel=wheel,
357364
dist=dist,
358-
version=lambda: print(getversion()),
365+
version=printVersion,
359366
help=help,
360367
)
361368
todos.update(

0 commit comments

Comments
 (0)