From 4a0df50446e7fceabc02da35e29e1a717a808f50 Mon Sep 17 00:00:00 2001 From: Madhu RAJAGOPAL Date: Thu, 11 Jul 2024 15:31:37 +1200 Subject: [PATCH] Issue 19: Log command-line arguments at start * Log the command-line input by the user * os.Args hold the command-line arguments, starting with the program name --- cmd/nginx-supportpkg.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/nginx-supportpkg.go b/cmd/nginx-supportpkg.go index f5d5d66..becf3e5 100644 --- a/cmd/nginx-supportpkg.go +++ b/cmd/nginx-supportpkg.go @@ -46,6 +46,7 @@ func Execute() { } collector.Logger.Printf("Starting kubectl-nginx-suportpkg - version: %s - build: %s", version.Version, version.Build) + collector.Logger.Printf("Input args are %v", os.Args) switch product { case "nic":