#!python

import argparse
from netoi_check import check

parser = argparse.ArgumentParser(
        description='Send problem to check')
parser.add_argument('--problem', '-p', required=True,
        help='Problem name')
parser.add_argument('--source', '-s', required=True,
        help='Source to check')
parser.add_argument('--language', '-l',
        choices=['cpp', 'java', 'py3', 'pas'],
        help='Specify programming language')
parser.add_argument('--silent', action='store_true',
        help='Silent mode')
parser.add_argument('--html',
        help='Save results in html')
args = parser.parse_args()

res = check(problem=args.problem, source=args.source,
            language=args.language, silent=args.silent,
            html=args.html)
print(res)
