title: go test flag: flag provided but not defined
body: <p>Hi I am using a flag when testing in go:<br>
  file_test.go
  <code>var ip = flag.String("ip", "noip", "test")</code></p>
  
  <p>I am only using this in one test file. And it works fine when only testing that one test file, but when I run:
  <code>go test ./... -ip 127.0.0.1</code> alle of the other test file saying: <code>flag provided but not defined</code>.</p>
  
  <p>Have you seen this?</p>
  
  <p>Regards</p>