From 37c6594fbafc560bcdd1ef0ce0810fc795b27ece Mon Sep 17 00:00:00 2001 From: Roman Leonenkov <6890447+grafviktor@users.noreply.github.com> Date: Mon, 1 Jan 2024 23:59:52 +0300 Subject: [PATCH] Should be able to pass arguments when run the app using 'make run' command --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a62462f..734b0fc 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,8 @@ unit-test-report: run: @echo 'Running debug build' @-rm debug.log 2>/dev/null - go run cmd/goto/* + @echo 'To pass app arguments use: make run ARGS="-h"' + go run cmd/goto/* $(ARGS) ## build: create binaries for all supported platforms in ./build folder. Archive all binaries with zip. .PHONY: build