Skip to content

Commit ab0cf82

Browse files
committed
Update main.go
1 parent 7aa74cb commit ab0cf82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var cli struct {
1919
}
2020

2121
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
22-
fmt.Println("Bread v" + vars["version"])
22+
fmt.Println("Bread v" + vars["VERSION"])
2323
app.Exit(0)
2424
return nil
2525
}
@@ -34,7 +34,7 @@ func main() {
3434
Compact: true,
3535
}),
3636
kong.Vars{
37-
"version": "0.3.7",
37+
"VERSION": "0.3.7",
3838
})
3939
// Call the Run() method of the selected parsed command.
4040
err := ctx.Run()

0 commit comments

Comments
 (0)