def validate_args(args):
    """
    Performs validation of common arguments provided to hooks.
    Currently only checks if key and certificate are both provided if either are.

    Args:
        args: arguments parsed from argparser object
    """
    if (args.clientcert or args.clientkey) and not (args.clientcert and
        args.clientkey):
        print(
            "Either both '--clientcert' and '--clientkey' must be set or neither should be set."
            )
        exit(1)
