Behat/Behat — Issue #98: behat --definitions not working as expected
Author: brettscott
Created: 2012-02-28 08:32:45+00:00
State: open

The documentation at the following location suggests that "behat --definitions" should present a list of definitions. It doesn't.
http://docs.behat.org/cookbook/behat_and_mink.html

I received an error:

```[RuntimeException]
The "--definitions" option requires a value.

behat [-c|--config="..."] [-p|--profile="..."] [--init] [-f|--format="..."] [--out="..."] [--lang="..."] [--[no-]ansi] [--[no-]time] [--[no-]paths] [--[no-]snippets] [--[no-]snippets-paths] [--[no-]multiline] [--[no-]expand] [--story-syntax] [-d|--definitions="..."] [--name="..."] [--tags="..."] [--strict] [--dry-run][--rerun="..."] [--append-snippets] [features]
```

Looking through the codebase the following alternative options:
* use -dl to just list definition expressions
* use -di to show definitions with extended info
* use -d 'needle' to find specific definitions

It sounds like "-di" is a suitable match to the old "--definitions" behaviour.

I've just performed a pear upgrade on behat/behat to get the latest version.