title: How to pass multiple arguments in pytest using command line?
body: <p>I want to pass inputs to my pytest file as a command line option. This question <a href="https://stackoverflow.com/a/42145604/8031479">https://stackoverflow.com/a/42145604/8031479</a> was helpful but I don't know to add multiple parser adoptions. </p>
  
  <p>I have tried adding this to my <em>conftest.py</em> file, but was not helpful:</p>
  
  <pre><code>def pytest_addoption(parser):
      """
          This function is used to extract input1 and input2 values from the command line
      """
      parser.addoption(
          "--input1", action="store", default="input1"
      )
      parser.addoption(
          "--input2", action="store", default="input2"
      )
  </code></pre>
  
  <p>Contents of my test.py file:</p>
  
  <pre><code>import pytest
  
  @pytest.fixture()
  def get_input1(input1):
      print 'input1:', input1
      return input1
  
  # @pytest.mark.unit
  @pytest.fixture()
  def get_input2(input2):
      print 'input2:', input2
      return input2
  
  def test_hello(get_input1, get_input2):
      print 'testing pytest fixtures with command line options'
      print get_input1, get_input2
  </code></pre>
  
  <p>This is my command to run the <em>test.py</em> file: </p>
  
  <pre><code>py.test test.py --input1="hello" --input2="world"
  </code></pre>
  
  <p>I am getting this error message:</p>
  
  <pre><code>@pytest.fixture()
  def get_input1(input1):
  E       fixture 'input1' not found
  &gt;       available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, get_input1, get_input2, metadata, monkeypatch, pytestconfig, record_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
  &gt;       use 'pytest --fixtures [testpath]' for help on them.
  </code></pre>