chore: log flags when verbose

main
sudo pacman -Syu 2023-01-17 16:09:35 +07:00
parent 7fc100d359
commit 031a349461
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ func (a *action) getFlags(c *cli.Context) {
a.flags.diff = c.Bool(flagDiffName)
a.flags.verbose = c.Bool(flagVerboseName)
a.flags.companyPrefix = c.String(flagCompanyPrefixName)
if a.flags.verbose {
fmt.Printf("flags: %+v\n", a.flags)
}
}
func (a *action) Run(c *cli.Context) error {