Deprecate and maintain backwards compatibility
This commit is contained in:
		@ -210,8 +210,10 @@ func (c *Command) SetArgs(a []string) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// SetOutput sets the destination for usage and error messages.
 | 
					// SetOutput sets the destination for usage and error messages.
 | 
				
			||||||
// If output is nil, os.Stderr is used.
 | 
					// If output is nil, os.Stderr is used.
 | 
				
			||||||
 | 
					// Deprecated: Use SetOut and/or SetErr instead
 | 
				
			||||||
func (c *Command) SetOutput(output io.Writer) {
 | 
					func (c *Command) SetOutput(output io.Writer) {
 | 
				
			||||||
	c.outWriter = output
 | 
						c.outWriter = output
 | 
				
			||||||
 | 
						c.errWriter = output
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// SetOut sets the destination for usage messages.
 | 
					// SetOut sets the destination for usage messages.
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user