exit on version string
authorVolker Birk <vb@pep-project.org>
Fri, 11 Oct 2019 21:47:20 +0200
changeset 34 d9eaf22f13ea
parent 33 12c0bdcb709d
child 35 5414b157613a
exit on version string
yml2c
--- a/yml2c	Fri Oct 11 21:39:11 2019 +0200
+++ b/yml2c	Fri Oct 11 21:47:20 2019 +0200
@@ -17,6 +17,7 @@
 
 def printInfo(option, opt_str, value, parser):
     sys.stdout.write(__doc__)
+    sys.exit(0)
 
 def w(msg):
     if isinstance(msg, BaseException):