Fix bug that empty log directories are created on any command with --help argument (#753)

This commit is contained in:
CrendKing
2020-12-30 17:00:38 -08:00
committed by GitHub
parent 207009939f
commit 60aec0ee9f

View File

@@ -57,6 +57,10 @@
// Initialize is invoked as part of command execution to create log file just before it's needed.
func Initialize(ctx *kingpin.ParseContext) error {
if *logDir == "" {
return nil
}
now := clock.Now()
suffix := "unknown"