diff --git a/tools/pylib/_boutpp_build/backend.py b/tools/pylib/_boutpp_build/backend.py index 5d61b5191b..3df29d276d 100755 --- a/tools/pylib/_boutpp_build/backend.py +++ b/tools/pylib/_boutpp_build/backend.py @@ -350,12 +350,19 @@ def help(): print(fmt % row) +def printVersion(): + """ + print the version + """ + print(getversion()) + + todos = dict( nightly=nightly, sdist=sdist, wheel=wheel, dist=dist, - version=lambda: print(getversion()), + version=printVersion, help=help, ) todos.update(