Skip to content

Commit f6a56a9

Browse files
author
Jeremy Cohn
committed
A few minor updates in the analyze usage
1 parent 63a8131 commit f6a56a9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cmd/preflight/cli/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var (
1616

1717
func RootCmd() *cobra.Command {
1818
cmd := &cobra.Command{
19-
Use: "preflight [url-or-file]",
19+
Use: "preflight [url]",
2020
Args: cobra.MinimumNArgs(1),
2121
Short: "Run and retrieve preflight checks in a cluster",
2222
Long: `A preflight check is a set of validations that can and should be run to ensure

cmd/troubleshoot/cli/analyze.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import (
1717

1818
func Analyze() *cobra.Command {
1919
cmd := &cobra.Command{
20-
Use: "analyze [url-or-file]",
20+
Use: "analyze [url]",
2121
Args: cobra.MinimumNArgs(1),
2222
Short: "analyze a support bundle",
23-
Long: `Used to analyze an already downloaded support-bundle`,
23+
Long: `Analyze a support bundle using the Analyzer definitions provided`,
2424
PreRun: func(cmd *cobra.Command, args []string) {
2525
viper.BindPFlag("bundle", cmd.Flags().Lookup("bundle"))
2626
viper.BindPFlag("output", cmd.Flags().Lookup("output"))
@@ -69,7 +69,7 @@ func Analyze() *cobra.Command {
6969
},
7070
}
7171

72-
cmd.Flags().String("bundle", "", "Filename of the support bundle to analyze")
72+
cmd.Flags().String("bundle", "", "filename of the support bundle to analyze")
7373
cmd.MarkFlagRequired("bundle")
7474
cmd.Flags().String("output", "", "output format: json, yaml")
7575
cmd.Flags().String("compatibility", "", "output compatibility mode: support-bundle")

cmd/troubleshoot/cli/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var (
1717

1818
func RootCmd() *cobra.Command {
1919
cmd := &cobra.Command{
20-
Use: "troubleshoot [url-or-file]",
20+
Use: "troubleshoot [url]",
2121
Args: cobra.MinimumNArgs(1),
2222
Short: "Generate and manage support bundles",
2323
Long: `A support bundle is an archive of files, output, metrics and state

0 commit comments

Comments
 (0)