Skip to content

Commit ad6e5c0

Browse files
committed
Auto merge of #6109 - joshtriplett:cargo-build-help, r=alexcrichton
cargo build: Simplify help for pkgids Drop the full paragraph at the end of the help message in favor of a reference to `cargo help pkdid`.
2 parents 0edbfbb + fb7034b commit ad6e5c0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bin/cargo/commands/build.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub fn cli() -> App {
77
.alias("b")
88
.about("Compile a local package and all of its dependencies")
99
.arg_package_spec(
10-
"Package to build",
10+
"Package to build (see `cargo help pkgid`)",
1111
"Build all packages in the workspace",
1212
"Exclude packages from the build",
1313
)
@@ -34,11 +34,6 @@ pub fn cli() -> App {
3434
.arg_build_plan()
3535
.after_help(
3636
"\
37-
If the --package argument is given, then SPEC is a package id specification
38-
which indicates which package should be built. If it is not given, then the
39-
current package is built. For more information on SPEC and its format, see the
40-
`cargo help pkgid` command.
41-
4237
All packages in the workspace are built if the `--all` flag is supplied. The
4338
`--all` flag is automatically assumed for a virtual manifest.
4439
Note that `--exclude` has to be specified in conjunction with the `--all` flag.

0 commit comments

Comments
 (0)