#!/usr/bin/env python3
from gendiff.parser_args_terminal import cli_parser
from gendiff.gendiff_base import generate_diff


def main():
    namespace = cli_parser()
    result = generate_diff(namespace.first_file,
                           namespace.second_file,
                           namespace.format)
    print(result)


if __name__ == '__main__':
    main()
