]> git.proxmox.com Git - cargo.git/commitdiff
Show alias in help message
authorIvan Tham <pickfire@riseup.net>
Tue, 2 Jun 2020 12:52:00 +0000 (20:52 +0800)
committerIvan Tham <pickfire@riseup.net>
Tue, 2 Jun 2020 12:52:00 +0000 (20:52 +0800)
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

index 23ed0ca53a381411defdb49931fa3f83112131bd..a6f8b1cbd8a8000986e72664472322ebe8a81b58 100644 (file)
@@ -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