diff -r 7c01f9876b69 -r fcc07f6907a8 unittest.py --- a/unittest.py Thu Aug 26 19:43:03 2021 +0300 +++ b/unittest.py Thu Aug 26 19:49:55 2021 +0300 @@ -101,12 +101,15 @@ return problem_tuple[0] + ':' + str(problem_tuple[1]) def run_unit_test_suite(): + import sys from argparse import ArgumentParser + from ldcheck import load_rcfile, LDrawContext, postprocess_library_paths parser = ArgumentParser() parser.add_argument('-d', '--debug', action = 'store_true') - args = parser.parse_args() - from ldcheck import LDrawContext - context = LDrawContext() + parser.add_argument('-l', '--library', action = 'append') + parser.add_argument('--color', action = 'store_true') + args = parser.parse_args(load_rcfile() + sys.argv[1:]) + context = LDrawContext(libraries = postprocess_library_paths(args.library)) test_suite = load_tests() num_tested = 0 num_passed = 0