Description
It can be confusing that there are commands (aliases) available that are not displayed with cargo --list
. I think displaying these can help with discovery, and make it clearer that certain commands are actually aliases.
The tricky bit is exactly how it should be exposed. There are tools and scripts that parse the output of cargo --list
, which unfortunately doesn't have an explicit flag for setting the output format (such as a machine-readable format). I think something like this should work:
b alias: build
c alias: check
t alias: test
r alias: run
rr alias: run --release
space_example alias: run --release -- "command list"