Add comment explaining where to set defaults and why.

This commit is contained in:
Christian Galo 2025-05-18 17:36:11 -05:00
parent d53f26b59b
commit e51c71da67

View File

@ -87,6 +87,7 @@ var startCmd = &cobra.Command{
func init() {
// Register flags with Cobra
// Do not set default values here. Use viper.SetDefault() instead. https://github.com/spf13/viper/issues/671
startCmd.Flags().StringP("port", "p", "", "Port to listen on")
startCmd.Flags().String("client-id", "", "OIDC Client ID")
startCmd.Flags().String("issuer-url", "", "Identity Provider Issuer URL")