Document run-tests.sh --os

Also switch to heredoc syntax for ease of editing
This commit is contained in:
ISSOtm
2026-03-09 03:33:41 -04:00
committed by Rangi
parent 6270f654a1
commit 670bdf2095
2 changed files with 21 additions and 16 deletions

View File

@@ -4,14 +4,16 @@ set -euo pipefail
cd "$(dirname "$0")"
usage() {
echo "Downloads source code of Game Boy programs used as RGBDS test cases."
echo "Options:"
echo " -h, --help show this help message"
echo " --only-free download only freely licensed codebases"
echo " --only-internal do not download any codebases"
echo " --get-deps install programs' own dependencies instead of themselves"
echo " --get-hash print programs' commit hashes instead of downloading them"
echo " --get-paths print programs' GitHub paths instead of downloading them"
cat <<"EOF"
Downloads source code of Game Boy programs used as RGBDS test cases.
Options:
-h, --help show this help message
--only-free download only freely licensed codebases
--only-internal do not download any codebases
--get-deps install programs' own dependencies instead of themselves
--get-hash print programs' commit hashes instead of downloading them
--get-paths print programs' GitHub paths instead of downloading them
EOF
}
# Parse options in pure Bash because macOS `getopt` is stuck