From 23e7558904bb24966f1c459a4a5d1817a032afea Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Thu, 27 Jan 2022 10:23:48 +0100 Subject: [PATCH] [BREAKING CHANGE] Use Stdout (#14) --- acmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acmd.go b/acmd.go index 30d7a16..11390cd 100644 --- a/acmd.go +++ b/acmd.go @@ -61,7 +61,7 @@ type Config struct { Version string // Output is a destionation where result will be printed. - // Exported for testing purpose only, if nil os.Stderr is used. + // Exported for testing purpose only, if nil os.Stdout is used. Output io.Writer // Context for commands, if nil context based on os.Interrupt and syscall.SIGTERM will be used. @@ -117,7 +117,7 @@ func (r *Runner) Exit(err error) { func (r *Runner) init() error { if r.cfg.Output == nil { - r.cfg.Output = os.Stderr + r.cfg.Output = os.Stdout } if r.cfg.Usage == nil {