# -*- coding: utf-8 -*-

import pytest


def pytest_addoption(parser):
    group = parser.getgroup('{{cookiecutter.plugin_name}}')
    group.addoption(
        '--foo',
        action='store',
        dest='foo',
        help='alias for --foo'
    )


@pytest.fixture
def bar(request):
    return request.config.option.foo

# -*- coding: utf-8 -*-

import pytest


def pytest_addoption(parser):
    group = parser.getgroup('{{cookiecutter.plugin_name}}')
    group.addoption(
        '--foo',
        action='store',
        dest='foo',
        help='Set the value for the fixture "bar".'
    )


@pytest.fixture
def bar(request):
    return request.config.option.foo

Optimize the help message for the option arg