diff --git a/logging.go b/logging.go index 63a0c32..3613fc1 100644 --- a/logging.go +++ b/logging.go @@ -46,7 +46,7 @@ func configureLogFile(path string) { } // Configure the logging library based on the various command line flags. -func configureLogging(flags cliFlags) error { +func configureLogging(flags tCliFlags) error { log = logrus.NewEntry(logrus.New()) log.Logger.SetFormatter(&logrus.TextFormatter{ DisableColors: true, diff --git a/main.go b/main.go index 195202b..37511c5 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( type ( // This structure contains all values that may be set from the command line. - cliFlags struct { + tCliFlags struct { // The path to the configuration file. cfgFile string // Quiet mode. Will disable logging to stderr. @@ -25,9 +25,9 @@ type ( ) // Parse command line options. -func parseCommandLine() cliFlags { +func parseCommandLine() tCliFlags { var help bool - flags := cliFlags{} + flags := tCliFlags{} golf.StringVarP(&flags.cfgFile, 'c', "config", "/etc/fetch-certificates.yml", "Path to the configuration file.") golf.StringVarP(&flags.logFile, 'f', "log-file", "", "Path to the log file.")