rust-lang/cargo — pull request #702 by tomassedovic (2014-10-13 22:13:19+00:00)
Title: Add `cargo run --example` and `cargo run --bin`

This lets users run any executable from the `examples` or `bin` directories by
passing its name with `--example` or `--bin` flag.

If neither is specified, we fall back to the old behaviour (running the only bin
target in the project, failing if there are more).

Closes #538