fix space on invalid command, remove unused option mention in help

This commit is contained in:
Aidan 2024-11-13 15:14:42 -05:00
parent 7d0d75a190
commit 48c74fc6a2
No known key found for this signature in database
GPG Key ID: E971D213C29E3A5D

4
manage
View File

@ -60,7 +60,7 @@ function install_tools() {
function show_help() {
echo -e "${COLOR_GREEN}manage version:${COLOR_RESET} ${COLOR_BLUE}${SC_VERSION} ${SC_CODENAME}${COLOR_RESET}"
echo -e "${COLOR_BLUE}Usage:${COLOR_RESET} ./manage [command] [options]\n"
echo -e "${COLOR_BLUE}Usage:${COLOR_RESET} ./manage [command]\n"
echo -e "${COLOR_YELLOW}Commands:${COLOR_RESET}"
echo -e " ${COLOR_CYAN}help, -h, --help${COLOR_RESET} Shows this help message."
echo -e " ${COLOR_CYAN}up${COLOR_RESET} Builds the project and starts the server."
@ -347,7 +347,7 @@ case $1 in
;;
*)
check_setup
echo -e "${COLOR_RED}Invalid command: $1${COLOR_RESET}"
echo -e "${COLOR_RED}Invalid command: $1\n${COLOR_RESET}"
show_help
;;
esac