We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841c5c2 commit ced051aCopy full SHA for ced051a
src/main.go
@@ -17,6 +17,7 @@ var cli struct {
17
Search commands.SearchCmd `cmd:"" help:"Search for appliation from appimage list."`
18
Clean commands.CleanCmd `cmd:"" help:"Clean all the cache."`
19
Version VersionFlag `name:"version" help:"Print version information and quit"`
20
+ Debug bool `help:"Show extra information for debugging."`
21
}
22
23
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
@@ -35,9 +36,9 @@ func main() {
35
36
Compact: true,
37
}),
38
kong.Vars{
- "VERSION": "0.4.1",
39
+ "VERSION": "0.4.2",
40
})
41
// Call the Run() method of the selected parsed command.
- err := ctx.Run()
42
+ err := ctx.Run(cli.Debug)
43
ctx.FatalIfErrorf(err)
44
0 commit comments