Some how all sorts of test argument flags showing up in go program usage
<p>I have a small go command line utility that I am building in the usual way:</p>

<pre><code>go build
</code></pre>

<p>I use the <code>flag</code> package to add command line flags. And all was going swimmingly until I started getting a lot of test flags showing up. Now when I print the usage using <code>flag.Usage</code> I see lots of extra flags:</p>

<pre><code>  -test.bench string
        regular expression to select benchmarks to run
  -test.benchmem
        print memory allocations for benchmarks
  -test.benchtime duration
        approximate run time for each benchmark (default 1s)
  -test.blockprofile string
        write a goroutine blocking profile to the named file after execution
  -test.blockprofilerate int
        if &gt;= 0, calls runtime.SetBlockProfileRate() (default 1)
</code></pre>

<p>There are a lot more than this. </p>

<p>I am using the main flag set and adding flags with <code>flag.IntVar</code> and the like. </p>

<p>I can't figure out what I did or how this could have been enabled. None of my other programs include these test flags in the default usage message. I appreciate any pointers. </p>