Explorar o código

hide "DEVCOMMAND" description commands

UltimateByte %!s(int64=9) %!d(string=hai) anos
pai
achega
f126f52de9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lgsm/functions/core_getopt.sh

+ 1 - 1
lgsm/functions/core_getopt.sh

@@ -135,7 +135,7 @@ fn_opt_usage(){
 	{
 	for ((index="0"; index < ${#currentopt[@]}; index+=3)); do
 		# Hide developer commands
-		if [ "${currentopt[index+3]}" != "DEVCOMMAND" ]; then
+		if [ "${currentopt[index+2]}" != "DEVCOMMAND" ]; then
 			echo -e "${cyan}$(echo "${currentopt[index]}" | awk -F ';' '{ print $2 }')\t${default}$(echo "${currentopt[index]}" | awk -F ';' '{ print $1 }')\t| ${currentopt[index+2]}"
 		fi
 	done