diff --git a/pkg/app/debug.go b/pkg/app/debug.go index b7cec7c3..5d9d93fc 100644 --- a/pkg/app/debug.go +++ b/pkg/app/debug.go @@ -18,6 +18,12 @@ var DebugKubernetesAPI = false func DefineDebugFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause) { DefineDebugUnixSocketFlag(cmd) + cmd.Flag("debug-http-addr", "http addr for a debug endpoint"). + Envar("DEBUG_HTTP_SERVER_ADDR"). + Hidden(). + Default(DebugHttpServerAddr). + StringVar(&DebugHttpServerAddr) + cmd.Flag("debug-keep-tmp-files", "set to yes to disable cleanup of temporary files"). Envar("DEBUG_KEEP_TMP_FILES"). Hidden(). @@ -77,11 +83,3 @@ func DefineDebugUnixSocketFlag(cmd *kingpin.CmdClause) { Default(DebugUnixSocket). StringVar(&DebugUnixSocket) } - -func DefineDebugHttpPortFlag(cmd *kingpin.CmdClause) { - cmd.Flag("debug-http-port", "http port for a debug endpoint"). - Envar("DEBUG_HTTP_SERVER_ADDR"). - Hidden(). - Default(DebugHttpServerAddr). - StringVar(&DebugHttpServerAddr) -}