Set errwriter for urfave/cli v1 (#26616)

Resolves #26615
This commit is contained in:
John Olheiser 2023-08-20 23:02:40 -05:00 committed by GitHub
parent bcb0f3a90f
commit 11711c51cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,8 @@ func main() {
log.GetManager().Close()
os.Exit(code)
}
app.ErrWriter = os.Stderr
_ = cmd.RunMainApp(app, os.Args...) // all errors should have been handled by the RunMainApp
log.GetManager().Close()
}