Auto merge of #5024 - debris:helpful_message, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 9 Feb 2018 00:22:00 +0000 (00:22 +0000)
committerbors <bors@rust-lang.org>
Fri, 9 Feb 2018 00:22:00 +0000 (00:22 +0000)
commit8c2f353e4a067c350a3685f1738a5d65894dc1e7
treecb064ab9cdd1cf58bf1817cb88d26ad9dd5a8356
parent5bfcaa1cd1fdc3d9e147195ae1e5b959335269b1
parentbd7ba3c89c4ede4e1b3db930aefe4dff59ba1184
Auto merge of #5024 - debris:helpful_message, r=alexcrichton

Add helpful message when running cargo doc --open

Add helpful message when running cargo doc --open in the root of the workspace.

closes #4962

old output:

```
 Documenting foo v0.1.0 (file:///Users/marek/projects/ethcore/tmp/dupa/foo)
 Documenting bar v0.1.0 (file:///Users/marek/projects/ethcore/tmp/dupa/bar)
    Finished dev [unoptimized + debuginfo] target(s) in 0.78 secs
error: Passing multiple packages and `open` is not supported
```

new output:

```
 Documenting foo v0.1.0 (file:///Users/marek/projects/ethcore/tmp/dupa/foo)
 Documenting bar v0.1.0 (file:///Users/marek/projects/ethcore/tmp/dupa/bar)
    Finished dev [unoptimized + debuginfo] target(s) in 0.81 secs
error: Passing multiple packages and `open` is not supported.
Please re-run this command with `-p <spec>` where `<spec>` is one of the following:
  foo
  bar
```