From 0d390cb59b66ed467af4ae31a2a8901e4715c353 Mon Sep 17 00:00:00 2001 From: Teodora Mihoc Date: Tue, 2 Aug 2022 17:13:14 +0200 Subject: [PATCH] Updated global options description --- logging.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/logging.go b/logging.go index de00f5a3..8872fbd4 100644 --- a/logging.go +++ b/logging.go @@ -42,13 +42,13 @@ func (l *Log) GetLogWriter(target io.Writer) loggo.Writer { // AddFlags adds appropriate flags to f. func (l *Log) AddFlags(f *gnuflag.FlagSet) { f.StringVar(&l.Path, "log-file", "", "path to write log to") - f.BoolVar(&l.Verbose, "v", false, "show more verbose output") - f.BoolVar(&l.Verbose, "verbose", false, "show more verbose output") - f.BoolVar(&l.Quiet, "q", false, "show no informational output") - f.BoolVar(&l.Quiet, "quiet", false, "show no informational output") - f.BoolVar(&l.Debug, "debug", false, "equivalent to --show-log --logging-config==DEBUG") - f.StringVar(&l.Config, "logging-config", l.DefaultConfig, "specify log levels for modules") - f.BoolVar(&l.ShowLog, "show-log", false, "if set, write the log file to stderr") + f.BoolVar(&l.Verbose, "v", false, "Show more verbose output") + f.BoolVar(&l.Verbose, "verbose", false, "Show more verbose output") + f.BoolVar(&l.Quiet, "q", false, "Show no informational output") + f.BoolVar(&l.Quiet, "quiet", false, "Show no informational output") + f.BoolVar(&l.Debug, "debug", false, "Equivalent to --show-log --logging-config==DEBUG") + f.StringVar(&l.Config, "logging-config", l.DefaultConfig, "Specify log levels for modules") + f.BoolVar(&l.ShowLog, "show-log", false, "If set, write the log file to stderr") } // Start starts logging using the given Context.