Skip to content

Commit

Permalink
A few minor updates in the analyze usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Cohn committed Mar 6, 2020
1 parent 63a8131 commit f6a56a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/preflight/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (

func RootCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "preflight [url-or-file]",
Use: "preflight [url]",
Args: cobra.MinimumNArgs(1),
Short: "Run and retrieve preflight checks in a cluster",
Long: `A preflight check is a set of validations that can and should be run to ensure
Expand Down
6 changes: 3 additions & 3 deletions cmd/troubleshoot/cli/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (

func Analyze() *cobra.Command {
cmd := &cobra.Command{
Use: "analyze [url-or-file]",
Use: "analyze [url]",
Args: cobra.MinimumNArgs(1),
Short: "analyze a support bundle",
Long: `Used to analyze an already downloaded support-bundle`,
Long: `Analyze a support bundle using the Analyzer definitions provided`,
PreRun: func(cmd *cobra.Command, args []string) {
viper.BindPFlag("bundle", cmd.Flags().Lookup("bundle"))
viper.BindPFlag("output", cmd.Flags().Lookup("output"))
Expand Down Expand Up @@ -69,7 +69,7 @@ func Analyze() *cobra.Command {
},
}

cmd.Flags().String("bundle", "", "Filename of the support bundle to analyze")
cmd.Flags().String("bundle", "", "filename of the support bundle to analyze")
cmd.MarkFlagRequired("bundle")
cmd.Flags().String("output", "", "output format: json, yaml")
cmd.Flags().String("compatibility", "", "output compatibility mode: support-bundle")
Expand Down
2 changes: 1 addition & 1 deletion cmd/troubleshoot/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (

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

0 comments on commit f6a56a9

Please sign in to comment.