Skip to content

Commit 49707e1

Browse files
committed
remove pointer to BaseOpts
1 parent c0f48cb commit 49707e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/cli/clu2adv/clu2adv.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010

1111
func Builder() *cobra.Command {
1212
o := &struct {
13-
*cli.BaseOpts
13+
cli.BaseOpts
1414
includeMoved bool
1515
}{
16-
BaseOpts: &cli.BaseOpts{
16+
BaseOpts: cli.BaseOpts{
1717
Fs: afero.NewOsFs(),
1818
},
1919
}
@@ -28,7 +28,7 @@ func Builder() *cobra.Command {
2828
Aliases: []string{"clu2adv"},
2929
RunE: o.RunE,
3030
}
31-
cli.SetupCommonFlags(cmd, o.BaseOpts)
31+
cli.SetupCommonFlags(cmd, &o.BaseOpts)
3232
cmd.Flags().BoolVarP(&o.includeMoved, flag.IncludeMoved, flag.IncludeMovedShort, false,
3333
"include moved blocks in the output file")
3434
return cmd

0 commit comments

Comments
 (0)