Skip to content

Commit

Permalink
Hide global --tenant flag on login command [DXCDT-14] (#388)
Browse files Browse the repository at this point in the history
* Hide globla `--tenant` flag on login command

* Ignore return value from `MarkHidden`
  • Loading branch information
Widcket authored Jan 24, 2022
1 parent f89c425 commit 57001ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/cli/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ func loginCmd(cli *cli) *cobra.Command {
},
}

cmd.SetHelpFunc(func(cmd *cobra.Command, args []string) {
_ = cmd.Flags().MarkHidden("tenant")
cmd.Parent().HelpFunc()(cmd, args)
})

return cmd
}

Expand Down

0 comments on commit 57001ee

Please sign in to comment.