1.1 --- a/tests/test_parser.py Tue Apr 09 16:03:59 2019 +0200
1.2 +++ b/tests/test_parser.py Tue Apr 09 16:30:20 2019 +0200
1.3 @@ -203,9 +203,25 @@
1.4 if __name__ == "__main__":
1.5 args = sys.argv[1:]
1.6
1.7 - quiet = "-q" in args
1.8 - if quiet:
1.9 - del args[args.index("-q")]
1.10 + if "--help" in args:
1.11 + print >>sys.stderr, """\
1.12 +Usage: %s [ -q ] [ <filename>... ]
1.13 +
1.14 +Run the test suite or, if filenames are indicated, specific test files.
1.15 +The following options are supported:
1.16 +
1.17 +-q Suppress test output, reporting only success or failure
1.18 +--quiet Equivalent to -q
1.19 +"""
1.20 + sys.exit(1)
1.21 +
1.22 + for arg in ["-q", "--quiet"]:
1.23 + if arg in args:
1.24 + del args[args.index(arg)]
1.25 + quiet = True
1.26 + break
1.27 + else:
1.28 + quiet = False
1.29
1.30 metadata = Metadata({
1.31 "input_context" : "directory",