From c572069dd8b07735341a9a8816a88ad4c5ea6ba6 Mon Sep 17 00:00:00 2001 From: bluew Date: Fri, 17 Jan 2020 15:12:15 +0000 Subject: [PATCH] bwruntests: Add version switch --- bwruntests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bwruntests.py b/bwruntests.py index b65ec84..b458c08 100755 --- a/bwruntests.py +++ b/bwruntests.py @@ -48,6 +48,8 @@ runtest.version = '0.2' runtest.add_argument('test_file', type=str, help='file defining tests to be run') +runtest.add_argument('--version', action='version', + version='%(prog)s ' + runtest.version) runtest.add_argument('-p', '--max-procs', type=int, default=multiprocessing.cpu_count(), help="""Number of parallel