UltimateByte 9 gadi atpakaļ
vecāks
revīzija
007a373d5d
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      lgsm/functions/core_getopt.sh

+ 2 - 2
lgsm/functions/core_getopt.sh

@@ -122,17 +122,17 @@ if [ -z "${getopt}" ]||[[ ! "${optcommands[@]}" =~ "${getopt}" ]]; then
 	if [ -n "${getopt}" ]; then
 	if [ -n "${getopt}" ]; then
 		echo -e "${red}Unknown command${default}: $0 ${getopt}"
 		echo -e "${red}Unknown command${default}: $0 ${getopt}"
 		exitcode=2
 		exitcode=2
-		echo "Usage: $0 [option]"
 	fi
 	fi
 	echo "${gamename} - Linux Game Server Manager - Version ${version}"
 	echo "${gamename} - Linux Game Server Manager - Version ${version}"
 	echo "https://gameservermanagers.com/${selfname}"
 	echo "https://gameservermanagers.com/${selfname}"
+	echo "Usage: $0 [option]"
 	echo -e ""
 	echo -e ""
 	echo -e "${lightyellow}Commands${default}"
 	echo -e "${lightyellow}Commands${default}"
 	# Display available commands
 	# Display available commands
 	index="0"
 	index="0"
 	{
 	{
 	for ((index="0"; index < ${#currentopt[@]}; index+=3)); do
 	for ((index="0"; index < ${#currentopt[@]}; index+=3)); do
-		echo -e "${blue}$(echo "${currentopt[index]}" | awk -F ';' '{ print $2 }')\t${default}$(echo "${currentopt[index]}" | awk -F ';' '{ print $1 }')\t|${currentopt[index+2]}"
+		echo -e "${cyan}$(echo "${currentopt[index]}" | awk -F ';' '{ print $2 }')\t${default}$(echo "${currentopt[index]}" | awk -F ';' '{ print $1 }')\t|${currentopt[index+2]}"
 	done
 	done
 	} | column -s $'\t' -t
 	} | column -s $'\t' -t
 else
 else