Skip to content

Commit

Permalink
unconvert: add -tags flag to control build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
yoheimuta authored and mdempsky committed Jul 3, 2018
1 parent beb68d9 commit 5a7d811
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unconvert.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (

"github.com/kisielk/gotool"
"golang.org/x/text/width"
"golang.org/x/tools/go/buildutil"
"golang.org/x/tools/go/loader"
)

Expand Down Expand Up @@ -175,6 +176,10 @@ func usage() {
flag.PrintDefaults()
}

func init() {
flag.Var((*buildutil.TagsFlag)(&build.Default.BuildTags), "tags", buildutil.TagsFlagDoc)
}

func main() {
flag.Usage = usage
flag.Parse()
Expand Down

0 comments on commit 5a7d811

Please sign in to comment.