Commit eaf739ca authored by Mathieu Giraud's avatar Mathieu Giraud

src/should.py: release 1.0.0

parent 076ac067
......@@ -26,6 +26,9 @@ if not (sys.version_info >= (3, 4)):
print("Python >= 3.4 required")
sys.exit(1)
__version_info__ = ('1','0','0')
__version__ = '.'.join(__version_info__)
import re
import argparse
import subprocess
......@@ -204,6 +207,9 @@ parser = ArgParser(description='Test command-line applications through .should f
%(prog)s demo/hello.should''',
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('--version', action='version',
version='%(prog)s {version}'.format(version=__version__))
options = ArgParser(fromfile_prefix_chars='@') # Can be used in !OPTIONS: directive
for p in (parser, options):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment