diff --git a/client/go/internal/cli/cmd/inspect.go b/client/go/internal/cli/cmd/inspect.go index 4a65479763c0..baa9d469b455 100644 --- a/client/go/internal/cli/cmd/inspect.go +++ b/client/go/internal/cli/cmd/inspect.go @@ -45,13 +45,10 @@ func newInspectProfileCmd(cli *CLI) *cobra.Command { opts := inspectProfileOptions{} cmd := &cobra.Command{ - Use: "profile", - Short: "Inspect profiling results", - Long: `Inspect profiling results previously obtained by vespa query --profile - -Note: this feature is experimental and currently under development -profiling results can also be analyzed with vespa-query-analyzer (part of vespa installation)`, - + Use: "profile", + Hidden: true, + Short: "Inspect profiling results", + Long: `Inspect profiling results previously obtained by vespa query --profile`, RunE: func(cmd *cobra.Command, args []string) error { return inspectProfile(cli, &opts) }, @@ -63,9 +60,10 @@ profiling results can also be analyzed with vespa-query-analyzer (part of vespa func newInspectCmd(cli *CLI) *cobra.Command { cmd := &cobra.Command{ - Use: "inspect", - Short: "Provides insight", - Long: "Provides subcommands to inspect various things in more detail", + Use: "inspect", + Hidden: true, + Short: "Provides insight", + Long: "Provides subcommands to inspect various things in more detail", } cmd.AddCommand(newInspectProfileCmd(cli)) return cmd diff --git a/client/go/internal/cli/cmd/query.go b/client/go/internal/cli/cmd/query.go index 89eed2d4ea10..deccf6722687 100644 --- a/client/go/internal/cli/cmd/query.go +++ b/client/go/internal/cli/cmd/query.go @@ -66,6 +66,8 @@ can be set by the syntax [parameter-name]=[value].`, cmd.Flags().IntVarP(&opts.queryTimeoutSecs, "timeout", "T", 10, "Timeout for the query in seconds") cmd.Flags().BoolVarP(&opts.profile, "profile", "", false, "Enable profiling mode (Note: this feature is experimental)") cmd.Flags().StringVarP(&opts.profileFile, "profile-file", "", "vespa_query_profile_result.json", "Profiling result file") + cmd.Flags().MarkHidden("profile") + cmd.Flags().MarkHidden("profile-file") cli.bindWaitFlag(cmd, 0, &opts.waitSecs) return cmd }