'Adds custom configuration parameters to argument parser.
This is a helper function for make_deployer().'

@classmethod
def validate_options_helper(cls, options):

    if (not options.deploy_aws_name):
        return
    if (not options.deploy_aws_pem_path):
        raise ValueError('--deploy_aws_pem_path    not    specified.')
    if (not os.path.exists(options.deploy_aws_pem_path)):
        raise ValueError('File    "{path}"    does    not    exist.'.format(path=options.deploy_aws_pem_path))
    if (not options.deploy_aws_security_group):
        raise ValueError('--deploy_aws_security_group    not    specified.')
    if options.deploy_deploy:
        response = run_and_monitor('aws    ec2    describe-instances    --profile    {region}    --filters    "Name=tag:Name,Values={name},Name=instance-state-name,Values=running"'.format(region=options.deploy_aws_region, name=options.deploy_aws_name), echo=False)
        if (response.returncode != 0):
            raise ValueError('Could    not    probe    AWS:    {0}'.format(response))
        exists = json.JSONDecoder().decode(response.stdout).get('Reservations')
        if exists:
            raise ValueError('Running    "{name}"    already    exists:    {info}'.format(name=options.deploy_aws_name, info=exists[0]))
