File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ func revisionCmd() *cobra.Command {
47
47
expandTLSPaths ()
48
48
},
49
49
RunE : func (cmd * cobra.Command , args []string ) error {
50
+ // Suppress the command usage on error. See #77 for more info
51
+ cmd .SilenceUsage = true
52
+
50
53
if v , _ := cmd .Flags ().GetBool ("version" ); v {
51
54
fmt .Println (Version )
52
55
return nil
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ func rollbackCmd() *cobra.Command {
39
39
expandTLSPaths ()
40
40
},
41
41
RunE : func (cmd * cobra.Command , args []string ) error {
42
+ // Suppress the command usage on error. See #77 for more info
43
+ cmd .SilenceUsage = true
44
+
42
45
if v , _ := cmd .Flags ().GetBool ("version" ); v {
43
46
fmt .Println (Version )
44
47
return nil
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ func newChartCommand() *cobra.Command {
50
50
expandTLSPaths ()
51
51
},
52
52
RunE : func (cmd * cobra.Command , args []string ) error {
53
+ // Suppress the command usage on error. See #77 for more info
54
+ cmd .SilenceUsage = true
53
55
54
56
if q , _ := cmd .Flags ().GetBool ("suppress-secrets" ); q {
55
57
diff .suppressedKinds = append (diff .suppressedKinds , "Secret" )
You can’t perform that action at this time.
0 commit comments