From c93fdbfb46f23719a3585a77d718f7a4e715b924 Mon Sep 17 00:00:00 2001 From: ruinivist Date: Tue, 10 Feb 2026 23:02:59 +0000 Subject: [PATCH] fix: make run args --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4bea68..ab3bead 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,15 @@ build: test: go test ./... +# To pass arguments that start with -, use -- to separate make flags from app flags +# Example: make run -- --time 15:00 +# Example: make run -- --tz +1000 run: - go run $(CMD_PATH) $(args) + @go run $(CMD_PATH) $(filter-out $@,$(MAKECMDGOALS)) clean: rm -rf $(BUILD_DIR) + +# Catch-all rule to prevent make from complaining about unknown targets (the args) +%: + @: