We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aa74cb commit ab0cf82Copy full SHA for ab0cf82
1 file changed
src/main.go
@@ -19,7 +19,7 @@ var cli struct {
19
}
20
21
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
22
- fmt.Println("Bread v" + vars["version"])
+ fmt.Println("Bread v" + vars["VERSION"])
23
app.Exit(0)
24
return nil
25
@@ -34,7 +34,7 @@ func main() {
34
Compact: true,
35
}),
36
kong.Vars{
37
- "version": "0.3.7",
+ "VERSION": "0.3.7",
38
})
39
// Call the Run() method of the selected parsed command.
40
err := ctx.Run()
0 commit comments