Skip to content

Commit ced051a

Browse files
committed
Added Debug Flag
1 parent 841c5c2 commit ced051a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var cli struct {
1717
Search commands.SearchCmd `cmd:"" help:"Search for appliation from appimage list."`
1818
Clean commands.CleanCmd `cmd:"" help:"Clean all the cache."`
1919
Version VersionFlag `name:"version" help:"Print version information and quit"`
20+
Debug bool `help:"Show extra information for debugging."`
2021
}
2122

2223
func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error {
@@ -35,9 +36,9 @@ func main() {
3536
Compact: true,
3637
}),
3738
kong.Vars{
38-
"VERSION": "0.4.1",
39+
"VERSION": "0.4.2",
3940
})
4041
// Call the Run() method of the selected parsed command.
41-
err := ctx.Run()
42+
err := ctx.Run(cli.Debug)
4243
ctx.FatalIfErrorf(err)
4344
}

0 commit comments

Comments
 (0)