mirror of
https://github.com/eosswedenorg/thalos
synced 2026-08-27 20:28:14 +02:00
cmd/thalos/main.go: minor cleanup in VersionPrinter
This commit is contained in:
parent
9974bfe3fd
commit
7108299550
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ func main() {
|
||||||
DisableDefaultText: true,
|
DisableDefaultText: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
cli.VersionPrinter = func(cCtx *cli.Context) {
|
cli.VersionPrinter = func(ctx *cli.Context) {
|
||||||
fmt.Printf("Version %s\n", VersionString)
|
fmt.Printf("Version %s\n", ctx.App.Version)
|
||||||
}
|
}
|
||||||
|
|
||||||
cli.VersionFlag = &cli.BoolFlag{
|
cli.VersionFlag = &cli.BoolFlag{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue