aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-22 23:18:25 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-22 23:18:25 -0700
commit663a36d57af49f3c91b69bde29533db47a30d870 (patch)
tree6859d1c992fb2f7ca0d90eb7d54976bee66f78c6 /test
parent5cae27d7262311c4884992cb45029b524f6be65f (diff)
parent3e25555f6610e67a97df25def3bcea781e5eb538 (diff)
Merge pull request #248 from cirosantilli/short-options
spec_tests add short options for common parameters
Diffstat (limited to 'test')
-rwxr-xr-xtest/spec_tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/spec_tests.py b/test/spec_tests.py
index a595381..23f45a0 100755
--- a/test/spec_tests.py
+++ b/test/spec_tests.py
@@ -11,18 +11,18 @@ from normalize import normalize_html
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Run cmark tests.')
- parser.add_argument('--program', dest='program', nargs='?', default=None,
+ parser.add_argument('-p', '--program', dest='program', nargs='?', default=None,
help='program to test')
- parser.add_argument('--spec', dest='spec', nargs='?', default='spec.txt',
+ parser.add_argument('-s', '--spec', dest='spec', nargs='?', default='spec.txt',
help='path to spec')
- parser.add_argument('--pattern', dest='pattern', nargs='?',
+ parser.add_argument('-P', '--pattern', dest='pattern', nargs='?',
default=None, help='limit to sections matching regex pattern')
parser.add_argument('--library-dir', dest='library_dir', nargs='?',
default=None, help='directory containing dynamic library')
parser.add_argument('--no-normalize', dest='normalize',
action='store_const', const=False, default=True,
help='do not normalize HTML')
- parser.add_argument('--dump-tests', dest='dump_tests',
+ parser.add_argument('-d', '--dump-tests', dest='dump_tests',
action='store_const', const=True, default=False,
help='dump tests in JSON format')
parser.add_argument('--debug-normalization', dest='debug_normalization',