We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b7334b6 + 8f32864 commit d67ab8cCopy full SHA for d67ab8c
1 file changed
tools/pylib/_boutpp_build/backend.py
100644
100755
@@ -1,3 +1,5 @@
1
+#!/bin/python3
2
+
3
import os # corelib
4
import glob # corelib
5
import hashlib # corelib
@@ -348,12 +350,19 @@ def help():
348
350
print(fmt % row)
349
351
352
353
+def printVersion():
354
+ """
355
+ print the version
356
357
+ print(getversion())
358
359
360
todos = dict(
361
nightly=nightly,
362
sdist=sdist,
363
wheel=wheel,
364
dist=dist,
- version=lambda: print(getversion()),
365
+ version=printVersion,
366
help=help,
367
)
368
todos.update(
@@ -368,4 +377,7 @@ def help():
377
import sys
369
378
370
379
for todo in sys.argv[1:]:
380
+ if todo not in todos:
381
+ help()
382
+ sys.exit(1)
371
383
todos[todo]()
0 commit comments