clean|compile|execute|finish|install|link|relink|uninstall) ;;
# Catch anything else as an error
- *) func_error "invalid argument for $_G_opt"
+ *) func_error "invalid argument '$1' for $_G_opt"
exit_cmd=exit
break
;;
/*) ;;
# Catch anything else as an error (relative paths)
- *) func_warning "invalid argument '$1' for $_G_opt"
- func_warning "absolute paths are required for $_G_opt"
+ *) func_error "invalid argument '$1' for $_G_opt"
+ func_error "absolute paths are required for $_G_opt"
exit_cmd=exit
break
;;
# Ensure each directory is an absolute path
case $dir in
/*) ;;
- *) func_warning "Directory '$dir' is not an absolute path"
+ *) func_error "Directory '$dir' is not an absolute path"
exit $EXIT_FAILURE ;;
esac
# Ensure no trailing slashes
preferred_search_directories=$dir
fi
else
- func_warning "Directory '$dir' does not exist"
+ func_error "Directory '$dir' does not exist"
exit $EXIT_FAILURE
fi
done
exit $EXIT_SUCCESS
;;
*)
- func_warning "--reorder-cache is not supported for host_os=$host_os."
+ func_error "--reorder-cache is not supported for host_os=$host_os."
exit $EXIT_FAILURE
;;
esac