Commit a27aefded97d49143dd3b1a27ea0243b71989c35

Martin Mitas 2017-07-24T20:17:50

pathological_tests.py: Allow short option -p as a synonym of --program.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index 702c60e..6f12379 100644
--- a/test/pathological_tests.py
+++ b/test/pathological_tests.py
@@ -9,7 +9,7 @@ from cmark import CMark
 
 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('--library-dir', dest='library_dir', nargs='?',
             default=None, help='directory containing dynamic library')