Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 93c8e25

Browse files
committedJan 16, 2025·
Add default config path to flag description
1 parent e6a32bf commit 93c8e25

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎cmd/icinga-kubernetes/main.go

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"context"
55
"flag"
6+
"fmt"
67
_ "github.com/go-sql-driver/mysql"
78
"github.com/google/uuid"
89
"github.com/icinga/icinga-go-library/config"
@@ -56,7 +57,12 @@ func main() {
5657
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
5758

5859
pflag.BoolVar(&showVersion, "version", false, "print version and exit")
59-
pflag.StringVar(&glue.Config, "config", daemon.DefaultConfigPath, "path to the config file")
60+
pflag.StringVar(
61+
&glue.Config,
62+
"config",
63+
daemon.DefaultConfigPath,
64+
fmt.Sprintf("path to the config file (default: %s)", daemon.DefaultConfigPath),
65+
)
6066
pflag.StringVar(&clusterName, "cluster-name", "", "name of the current cluster")
6167

6268
loadingRules := kclientcmd.NewDefaultClientConfigLoadingRules()

0 commit comments

Comments
 (0)
Please sign in to comment.