Skip to content

Commit

Permalink
chore: log flags when verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Jan 17, 2023
1 parent 7fc100d commit 031a349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/cli/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 031a349

Please sign in to comment.