From f11ac23e1f5c78649a5cbda846480e365be32934 Mon Sep 17 00:00:00 2001 From: Bellman <54757707+Yeachan-Heo@users.noreply.github.com> Date: Thu, 28 May 2026 06:06:42 +0900 Subject: [PATCH] fix: add roadmap next-id help handling (#3172) --- scripts/roadmap-next-id.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/scripts/roadmap-next-id.sh b/scripts/roadmap-next-id.sh index 3db4c49d..6f52c6e4 100755 --- a/scripts/roadmap-next-id.sh +++ b/scripts/roadmap-next-id.sh @@ -17,7 +17,25 @@ # and resolve any append collision at git-push time. set -euo pipefail -ROADMAP="${1:-ROADMAP.md}" +ROADMAP="ROADMAP.md" + +while [[ $# -gt 0 ]]; do + case "$1" in + --help|-h) + sed -n '2,15p' "$0" | sed 's/^# //; s/^#//' + exit 0 + ;; + --*) + echo "error: unknown option: $1" >&2 + exit 2 + ;; + *) + ROADMAP="$1" + shift + ;; + esac +done + SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)" CHECKER="$SCRIPT_DIR/roadmap-check-ids.sh"