fmt Run rustfmt
test, t Build and run some test suites
bench Build and run some benchmarks
- doc Build documentation
+ doc, d Build documentation
clean Clean out build directories
dist Build distribution artifacts
install Install distribution artifacts
|| (s == "t")
|| (s == "bench")
|| (s == "doc")
+ || (s == "d")
|| (s == "clean")
|| (s == "dist")
|| (s == "install")
"clippy" => {
opts.optflag("", "fix", "automatically apply lint suggestions");
}
- "doc" => {
+ "doc" | "d" => {
opts.optflag("", "open", "open the docs in a browser");
}
"clean" => {
./x.py test --stage 1",
);
}
- "doc" => {
+ "doc" | "d" => {
subcommand_help.push_str(
"\n
Arguments:
},
},
"bench" => Subcommand::Bench { paths, test_args: matches.opt_strs("test-args") },
- "doc" => Subcommand::Doc { paths, open: matches.opt_present("open") },
+ "doc" | "d" => Subcommand::Doc { paths, open: matches.opt_present("open") },
"clean" => {
if !paths.is_empty() {
println!("\nclean does not take a path argument\n");