Add support for `--list` flag.

This makes it work better with tab completion.
0.6.13