Skip to content

Commit

Permalink
Fix almost inlined flag (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Aug 13, 2023
1 parent 51b9121 commit a0a97d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions almostInlined.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ type almostInlinedRunner struct {
}

func (r *almostInlinedRunner) ExecCommand(_ context.Context, args []string) error {
fset := flag.NewFlagSet("boundCheck", flag.ContinueOnError)
fset := flag.NewFlagSet("almostInlined", flag.ContinueOnError)
fset.StringVar(&r.flagMod, "mod", "", `-mod compiler flag(readonly|vendor)`)
fset.BoolVar(&r.asJSON, "json", false, `return result as JSON`)
flag.IntVar(&r.threshold, "threshold", 10, `max inliner budget overflow threshold`)
fset.IntVar(&r.threshold, "threshold", 10, `max inliner budget overflow threshold`)
if err := fset.Parse(args); err != nil {
return err
}
Expand Down

0 comments on commit a0a97d4

Please sign in to comment.