diff --git a/src/main.go b/src/main.go index 823b44d..8336bc7 100644 --- a/src/main.go +++ b/src/main.go @@ -17,6 +17,7 @@ var cli struct { Search commands.SearchCmd `cmd:"" help:"Search for appliation from appimage list."` Clean commands.CleanCmd `cmd:"" help:"Clean all the cache."` Version VersionFlag `name:"version" help:"Print version information and quit"` + Debug bool `help:"Show extra information for debugging."` } func (v VersionFlag) BeforeApply(app *kong.Kong, vars kong.Vars) error { @@ -35,9 +36,9 @@ func main() { Compact: true, }), kong.Vars{ - "VERSION": "0.4.1", + "VERSION": "0.4.2", }) // Call the Run() method of the selected parsed command. - err := ctx.Run() + err := ctx.Run(cli.Debug) ctx.FatalIfErrorf(err) }