def add_options(parser):
    """Add pytest-bdd options."""
    group = parser.getgroup('bdd', 'Cucumber JSON')
    group.addoption('--cucumberjson', '--cucumber-json', action='store',
        dest='cucumber_json_path', metavar='path', default=None, help=
        'create cucumber json style report file at given path.')
    group._addoption('--cucumberjson-expanded', '--cucumber-json-expanded',
        action='store_true', dest='expand', default=False, help=
        'expand scenario outlines into scenarios and fill in the step names')
