def check_arg_output(parser, args):
    if not args.output:
        parser.error("-o, --output OUTPUT is required.")
    if not os.path.isdir(args.output):
        parser.error("Output {} directory doesn't exist.".format(args.output))