shithub: rgbds

Download patch

ref: 12dc49b60a10a2494c24804f3bed50a36e36fed8
parent: 7e1d20acdfd03bed76c66e213d2fd93cc703ac87
author: ISSOtm <eldredhabert0@gmail.com>
date: Thu Oct 22 20:40:05 EDT 2020

Make page processor print usage only after reporting all bad opts

--- a/.github/actions/get-pages.sh
+++ b/.github/actions/get-pages.sh
@@ -26,14 +26,12 @@
 			;;
 		\?)
 			echo "Unknown option '$OPTARG'"
-			if [ $bad_usage -eq 0 ]; then
-				usage
-				bad_usage=1
-			fi
+			bad_usage=1
 			;;
 	esac
 done
 if [ $bad_usage -ne 0 ]; then
+	usage
 	exit 1
 fi
 shift $(($OPTIND - 1))