def METHOD_NAME(cluster, dirname, weekly):
    exe = shutil.which('lbann')
    print('TESTING: run lbann with ill-formed param (exit_after_setup should have `--` not `-`) lbann should throw exception\n')
    (data_reader_path, model_path, optimizer_path) = get_default_parameters(
        dirname, two_models=False)
    (command_allocate, command_run, _, _) = tools.get_command(
        cluster=cluster,
        num_processes=1,
        return_tuple=True)
    (output_file_name, error_file_name) = get_file_names(dirname, 'bad_params')
    command_string = '{ca}{cr} {e} -exit_after_setup --reader={d} --model={m} --optimizer={o} > {ofn} 2> {efn}'.format(
        ca=command_allocate, cr=command_run, e=exe,
        d=data_reader_path, m=model_path, o=optimizer_path,
        ofn=output_file_name, efn=error_file_name
    )
    return_code = os.system(command_string)
    tools.assert_failure(return_code,
                         "Arguments could not be parsed.",
                         error_file_name)