Skip to content

Commit

Permalink
fix: mark endpoint and beta flags as hidden (#113)
Browse files Browse the repository at this point in the history
* fix: mark endpoint and beta flags as hidden
  • Loading branch information
brandonroberts authored Aug 29, 2024
1 parent be6f35d commit 6aa250f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ func NewRootCommand() (*cobra.Command, error) {
cmd.AddCommand(insights.NewInsightsCommand())
cmd.AddCommand(version.NewVersionCommand())

err := cmd.Flags().MarkHidden(constants.FlagNameEndpoint)
if err != nil {
return nil, err
}

err = cmd.Flags().MarkHidden(constants.FlagNameBeta)
if err != nil {
return nil, err
}

return cmd, nil
}

Expand Down

0 comments on commit 6aa250f

Please sign in to comment.