fix: add dogfood build help handling (#3181)

This commit is contained in:
Bellman
2026-05-28 11:36:13 +09:00
committed by GitHub
parent 3260258b56
commit 5c3e1c1444

View File

@@ -13,6 +13,24 @@
#
set -euo pipefail
usage() {
sed -n '2,12p' "$0" | sed 's/^# //; s/^#//'
}
if [[ $# -gt 0 ]]; then
case "$1" in
--help|-h)
usage
exit 0
;;
*)
echo "error: unknown argument: $1" >&2
usage >&2
exit 2
;;
esac
fi
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
RUST_DIR="$REPO_ROOT/rust"
BINARY="$RUST_DIR/target/debug/claw"