Skip to content

Commit

Permalink
Auto merge of #8766 - weihanglo:cmd/tree-all-targets, r=ehuss
Browse files Browse the repository at this point in the history
cargo-tree: mention special target `all` in CLI help text

Fixes #8567

Actually, `cargo help tree` has already got a [description about `--target=all`](https://github.com/rust-lang/cargo/blob/3045228ee139f970ccc892aa5c34c0f3cb70ee06/src/doc/man/cargo-tree.md#tree-options) in tree options:

```console
$ cargo help tree
...
OPTIONS
   Tree Options
        ...
       --target triple
           Filter dependencies matching the given target-triple. The default is the host platform. Use the value all to include all targets.
...
  • Loading branch information
bors committed Oct 10, 2020
2 parents 47ac484 + 62279ca commit b8448d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/cargo/commands/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ pub fn cli() -> App {
)
.arg_features()
.arg_target_triple(
"Filter dependencies matching the given target-triple (default host platform)",
"Filter dependencies matching the given target-triple (default host platform). \
Pass `all` to include all targets.",
)
.arg(
Arg::with_name("no-dev-dependencies")
Expand Down

0 comments on commit b8448d7

Please sign in to comment.