From 9ca38c46d44379b04bb849cad23956185603ad7e Mon Sep 17 00:00:00 2001 From: Alessio Greggi Date: Sat, 23 Sep 2023 09:01:08 +0200 Subject: [PATCH] style: change flag name Signed-off-by: Alessio Greggi --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 973dc70..3b97539 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,7 @@ var version string func main() { - functionName := flag.String("f", "", "Name of the function to trace (mandatory)") + functionName := flag.String("fn", "", "Name of the function to trace (mandatory)") // define usage flag.Usage = func() { fmt.Fprintf(os.Stderr, "\nUsage: %s [options] [command]\n", path.Base(os.Args[0])) @@ -48,7 +48,7 @@ func main() { // Check if the -f flag is provided and has a value if *functionName == "" { - fmt.Println("Error: -f flag is mandatory. Please provide the name of the function to trace.") + fmt.Println("Error: -fn flag is mandatory. Please provide the name of the function to trace.") os.Exit(1) }