title: Pytest not recognizing added options
body: <p>I have a project directory looks like following</p>
  <pre><code>Projects/
  ....this_project/
  ........this_project/
  ............__init__.py
  ............code.py
  ............tests/
  ................conftest.py
  ................test_1.py
  ................test_2.py
  </code></pre>
  <p>and I added a command line option (--PALLADIUM_CONFIG) by putting following code into conftest.py</p>
  <pre><code>def pytest_addoption(parser):
      parser.addoption(&quot;--PALLADIUM_CONFIG&quot;, action=&quot;store&quot;)
  
  @pytest.fixture
  def PALLADIUM_CONFIG(request):
      return request.config.getoption(&quot;--PALLADIUM_CONFIG&quot;)
  </code></pre>
  <p>And what strange is:</p>
  <p>if I cd into</p>
  <pre><code>Projects/this_project/this_project
  </code></pre>
  <p>or</p>
  <pre><code>Projects/this_project/this_project/tests
  </code></pre>
  <p>and run</p>
  <pre><code>py.test --PALLADIUM_CONFIG=***
  </code></pre>
  <p>if runs well</p>
  <p>but if I locate myself in for example</p>
  <pre><code>Projects/this_project
  </code></pre>
  <p>or</p>
  <pre><code>Projects
  </code></pre>
  <p>then pytest gives me error</p>
  <pre><code>py.test: error: unrecognized arguments: --PALLADIUM_CONFIG=***
  </code></pre>