Skip to content

Commit

Permalink
Merge pull request #106 from kndpio/104-remove-datetime-display-on-ve…
Browse files Browse the repository at this point in the history
…rsion-command

set datetime log to false for version flag
  • Loading branch information
evghen1 authored Apr 16, 2024
2 parents bb1df00 + 9abb054 commit 87c54a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/kndp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var Version = "development"
func (v VersionFlag) Decode(ctx *kong.DecodeContext) error { return nil }
func (v VersionFlag) IsBool() bool { return true }
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
log.SetReportTimestamp(false)
log.Print(vars["version"])
app.Exit(0)
return nil
Expand Down

0 comments on commit 87c54a4

Please sign in to comment.