Skip to content

Commit

Permalink
Fix stderr printing functions
Browse files Browse the repository at this point in the history
Follow-up of #822
  • Loading branch information
alessio authored and Alessio Treglia committed Aug 10, 2019
1 parent b80588d commit 59bb8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -1150,12 +1150,12 @@ func (c *Command) PrintErr(i ...interface{}) {

// PrintErrln is a convenience method to Println to the defined Err output, fallback to Stderr if not set.
func (c *Command) PrintErrln(i ...interface{}) {
c.Print(fmt.Sprintln(i...))
c.PrintErr(fmt.Sprintln(i...))
}

// PrintErrf is a convenience method to Printf to the defined Err output, fallback to Stderr if not set.
func (c *Command) PrintErrf(format string, i ...interface{}) {
c.Print(fmt.Sprintf(format, i...))
c.PrintErr(fmt.Sprintf(format, i...))
}

// CommandPath returns the full path to this command.
Expand Down

0 comments on commit 59bb8be

Please sign in to comment.