mirror of
https://github.com/writeas/writeas-cli
synced 2025-07-26 23:08:16 +00:00
log.Info will respect global flags
This commit is contained in:
parent
55dcf5e79c
commit
941d234395
@ -10,7 +10,7 @@ import (
|
||||
// Info logs general diagnostic messages, shown only when the -v or --verbose
|
||||
// flag is provided.
|
||||
func Info(c *cli.Context, s string, p ...interface{}) {
|
||||
if c.Bool("v") || c.Bool("verbose") {
|
||||
if c.Bool("v") || c.Bool("verbose") || c.GlobalBool("v") || c.GlobalBool("verbose") {
|
||||
fmt.Fprintf(os.Stderr, s+"\n", p...)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user