Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

fix: add roadmap next-id help handling (#3172)

Bellmanf11ac23e1f5c
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"