parser=argparse.ArgumentParser(description='Evaluate your report.')
parser.add_argument('question',nargs='?',type=int,default=None,help='Only evaluate this question')
parser=argparse.ArgumentParser(description='Evaluate your report.',epilog="""Example:
To run all tests in a report:
> python report1.py
To run only question 2 or question 2.1
> python report1.py -q 2
> python report1.py -q 2.1
Note this scripts does not grade your report. To grade your report, use:
> python report1_grade.py
Finally, note that if your report is part of a module (package), and the report script requires part of that package, the -m option for python may be useful.
As an example, suppose the report file is Documents/course_package/report1.py, and `course_package` is a python package. Change directory to 'Documents/` and execute:
> python -m course_package.report1
see https://docs.python.org/3.9/using/cmdline.html
""")
parser.add_argument('-q',nargs='?',type=str,default=None,help='Only evaluate this question (example: -q 2)')