Skip to content

Commit

Permalink
Make auth and device code flags visible (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
tirthct authored Mar 25, 2024
1 parent 82033bd commit 383d362
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/ocm/login/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ func init() {
"Login using OAuth Authorization Code. This should be used for most cases where a "+
"browser is available.",
)
flags.MarkHidden("use-auth-code")
flags.BoolVar(
&args.useDeviceCode,
"use-device-code",
Expand All @@ -161,7 +160,6 @@ func init() {
"This should only be used for remote hosts and containers where browsers are "+
"not available. Use auth code for all other scenarios.",
)
flags.MarkHidden("use-device-code")
}

func run(cmd *cobra.Command, argv []string) error {
Expand Down

0 comments on commit 383d362

Please sign in to comment.