"Common options" was intended as "all except internal", but it could be
interpreted as "global options" for a parser with commands.
Remove the possible confusion by using "Available options" instead,
which is also consistent with the label used for commands.
The `arguments` builder now creates a specialized infinite parser that
skips arguments starting with '-', and turns into a normal `many arg`
when a `--` is found.
Fixes#6.
The examples are now part of the test executable, and the test work by
using `execParserPure` instead of actually running the program and
capturing stderr.
This is a slightly less accurate test, but a lot cleaner and simpler to
maintain.
Add module `Options.Applicative`, which re-exports the whole package (and
`Control.Applicative` as well).
Now the package can be used after a single import:
import Options.Applicative
Add builder to make it easier to create a simple boolean flag. The
`switch` builder is just a `flag` with default value `False` and active
value `True`.