Skip to content

Commit

Permalink
add help for server flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ShohamBit committed Jan 9, 2025
1 parent 5533c81 commit 898c970
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/tracee/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,9 @@ func initCmd() error {
rootCmd.Flags().StringArray(
"server",
[]string{""},
"Server configuration options (e.g., --server http.metrics=true)", //add help comments
)
`--server <type>.<option>=<value> Configure HTTP or gRPC server options. <type> is either "http" or "grpc". Options include:
http: address, metrics, pprof, healthz, pyroscope
grpc: address`)

err = viper.BindPFlag("server", rootCmd.Flags().Lookup("server"))
if err != nil {
Expand Down

0 comments on commit 898c970

Please sign in to comment.