We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f8acae commit 9f8ab6fCopy full SHA for 9f8ab6f
internal/cmd/auth/get-access-token/get_access_token.go
@@ -67,6 +67,13 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
67
}
68
},
69
70
+
71
+ // hide project id flag from help command because it could mislead users
72
+ cmd.SetHelpFunc(func(command *cobra.Command, strings []string) {
73
+ _ = command.Flags().MarkHidden(globalflags.ProjectIdFlag) // nolint:errcheck // there's no chance to handle the error here
74
+ command.Parent().HelpFunc()(command, strings)
75
+ })
76
77
return cmd
78
79
0 commit comments