From a3118e1cc39fa6006ef411cfd00642938bce0ed8 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Tue, 2 Jun 2020 20:52:00 +0800 Subject: [PATCH] Show alias in help message Improve feature discovery of help message Inspired by x.py help https://github.com/rust-lang/rust/issues/71357 Improves https://github.com/rust-lang/cargo/issues/6104 --- src/bin/cargo/cli.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/cargo/cli.rs b/src/bin/cargo/cli.rs index 23ed0ca53a3..a6f8b1cbd8a 100644 --- a/src/bin/cargo/cli.rs +++ b/src/bin/cargo/cli.rs @@ -274,14 +274,14 @@ OPTIONS: {unified} Some common cargo commands are (see all commands with --list): - build Compile the current package - check Analyze the current package and report errors, but don't build object files + build, b Compile the current package + check, c Analyze the current package and report errors, but don't build object files clean Remove the target directory doc Build this package's and its dependencies' documentation new Create a new cargo package init Create a new cargo package in an existing directory - run Run a binary or example of the local package - test Run the tests + run, r Run a binary or example of the local package + test, t Run the tests bench Run the benchmarks update Update dependencies listed in Cargo.lock search Search registry for crates