Skip to content

Commit

Permalink
fix: set our and err writers to errout persistently
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido committed Oct 14, 2019
1 parent aa0071d commit cd66815
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cmd/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ func NewTraceCommand(streams genericclioptions.IOStreams) *cobra.Command {
Short: `Execute and manage bpftrace programs`, // Wrap with i18n.T()
Long: traceLong, // Wrap with templates.LongDesc()
Example: fmt.Sprintf(traceExamples, "kubectl"), // Wrap with templates.Examples()
Run: func(c *cobra.Command, args []string) {
PersistentPreRun: func(c *cobra.Command, args []string) {
c.SetOutput(streams.ErrOut)
},
Run: func(c *cobra.Command, args []string) {
cobra.NoArgs(c, args)
c.Help()
},
Expand Down

0 comments on commit cd66815

Please sign in to comment.