Command line arguments

This commit is contained in:
Artur Meski
2017-09-22 21:22:38 +02:00
parent 687b1c9cab
commit 81b1ab4507
3 changed files with 27 additions and 9 deletions

View File

@@ -6,6 +6,8 @@
"""
import argparse
from rs import *
from smt import *
import sys
@@ -14,10 +16,11 @@ import rs_testing
from colour import *
import resource
profiling = False
if profiling:
import resource
##################################################################
version = "2017/04/08/00"
@@ -43,8 +46,17 @@ def print_banner():
def main():
"""Main function"""
parser = argparse.ArgumentParser()
parser.add_argument("-v", "--verbose",
help="turn verbosity on", action="store_true")
parser.add_argument("-o", "--optimise",
help="minimise the parametric computation result", action="store_true")
args = parser.parse_args()
print_banner()
rs_testing.run_tests()
rs_testing.run_tests(args)
##################################################################