Skip to content

Commit

Permalink
style: change flag name
Browse files Browse the repository at this point in the history
Signed-off-by: Alessio Greggi <[email protected]>
  • Loading branch information
alegrey91 committed Sep 23, 2023
1 parent 2b91618 commit 9ca38c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand All @@ -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)
}

Expand Down

0 comments on commit 9ca38c4

Please sign in to comment.