From e4016ef8fede676abb0554bb41e6bb931c8b14e5 Mon Sep 17 00:00:00 2001 From: Tobias Kaupat Date: Sun, 18 Oct 2026 10:39:03 +0200 Subject: [PATCH] test: print only the comment header for run.sh --help Co-Authored-By: Claude Sonnet 5.5 --- test/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run.sh b/test/run.sh index 7529f7a..e1b934c 100644 --- a/test/run.sh +++ b/test/run.sh @@ -45,7 +45,7 @@ while [ $# -gt 0 ]; do --suite=*) ONLY_SUITE="${1#--suite=}" [ -n "$ONLY_SUITE" ] || { echo "--suite requires a value (compat|features|structure)" >&2; exit 2; } ;; - -h|--help) sed -n '2,14p' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;; + -h|--help) sed -n '2,/^$/{/^#/p;}' "$0" | sed 's/^# \{0,1\}//'; exit 0 ;; *) echo "unknown argument: $1" >&2; exit 2 ;; esac shift