Skip to content

Commit 119f01d

Browse files
committed
mark scc-registry flag as hidden
1 parent 15661ed commit 119f01d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

mgradm/shared/utils/cmd_utils.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,10 @@ It will be used as SCC credentials for products synchronization and to pull imag
180180
cmd.Flags().String("scc-password", "", L(`SUSE Customer Center password.
181181
It will be used as SCC credentials for products synchronization and to pull images from SCC registry`))
182182
cmd.Flags().String("scc-registry", "registry.suse.com", L(`SUSE Customer Center registry`))
183+
_ = cmd.Flags().MarkHidden("scc-registry")
183184
_ = utils.AddFlagHelpGroup(cmd, &utils.Group{ID: "scc", Title: L("SUSE Customer Center Flags")})
184185
_ = utils.AddFlagToHelpGroupID(cmd, "scc-user", "scc")
185186
_ = utils.AddFlagToHelpGroupID(cmd, "scc-password", "scc")
186-
// This was intentionally comment because we want this flag but we don't want to show
187-
// it help message. This should be use if an alternative SCC than registry.suse.com is
188-
// used
189-
_ = utils.AddFlagToHelpGroupID(cmd, "scc-registry", "scc")
190187
}
191188

192189
// AddImageFlag add Image flags to a command.

0 commit comments

Comments
 (0)