def valid_cert_fields(arg): """Make sure only valid cert field names are allowed""" valid_job_id(arg, extra_chars=',') if [i for i in arg.split(',') if not i in cert_field_names]: invalid_argument(arg)
def valid_mode_name(arg): """Make sure only valid mode names are allowed""" valid_job_id(arg)