chore: log flags when verbose
parent
7fc100d359
commit
031a349461
|
@ -28,6 +28,10 @@ func (a *action) getFlags(c *cli.Context) {
|
||||||
a.flags.diff = c.Bool(flagDiffName)
|
a.flags.diff = c.Bool(flagDiffName)
|
||||||
a.flags.verbose = c.Bool(flagVerboseName)
|
a.flags.verbose = c.Bool(flagVerboseName)
|
||||||
a.flags.companyPrefix = c.String(flagCompanyPrefixName)
|
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 {
|
func (a *action) Run(c *cli.Context) error {
|
||||||
|
|
Loading…
Reference in New Issue