#!/usr/bin/env python
"""
Similar file entry point
"""

import argparse
import logging

import supertool

ROOT_LOGGER = logging.getLogger()

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Finds similar files')
    parser.add_argument('directory', type=str, help='target directory')
    parser.add_argument('--verbose',  help='enable debug output', action='store_true')
    parser.parse_args()
    args = parser.parse_args()

    if args.verbose:
        log_level = logging.DEBUG
    else:
        log_level = logging.ERROR

    ROOT_LOGGER.setLevel(log_level)
    ROOT_LOGGER.info('Info')
    ROOT_LOGGER.critical('Critical error:')
    print(ROOT_LOGGER.level)
    print(args)