@@ -152,7 +152,7 @@ Subcommands:
152
152
fmt Run rustfmt
153
153
test, t Build and run some test suites
154
154
bench Build and run some benchmarks
155
- doc Build documentation
155
+ doc, d Build documentation
156
156
clean Clean out build directories
157
157
dist Build distribution artifacts
158
158
install Install distribution artifacts
@@ -244,6 +244,7 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`",
244
244
|| ( s == "t" )
245
245
|| ( s == "bench" )
246
246
|| ( s == "doc" )
247
+ || ( s == "d" )
247
248
|| ( s == "clean" )
248
249
|| ( s == "dist" )
249
250
|| ( s == "install" )
@@ -312,7 +313,7 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`",
312
313
"clippy" => {
313
314
opts. optflag ( "" , "fix" , "automatically apply lint suggestions" ) ;
314
315
}
315
- "doc" => {
316
+ "doc" | "d" => {
316
317
opts. optflag ( "" , "open" , "open the docs in a browser" ) ;
317
318
}
318
319
"clean" => {
@@ -487,7 +488,7 @@ Arguments:
487
488
./x.py test --stage 1" ,
488
489
) ;
489
490
}
490
- "doc" => {
491
+ "doc" | "d" => {
491
492
subcommand_help. push_str (
492
493
"\n
493
494
Arguments:
@@ -573,7 +574,7 @@ Arguments:
573
574
} ,
574
575
} ,
575
576
"bench" => Subcommand :: Bench { paths, test_args : matches. opt_strs ( "test-args" ) } ,
576
- "doc" => Subcommand :: Doc { paths, open : matches. opt_present ( "open" ) } ,
577
+ "doc" | "d" => Subcommand :: Doc { paths, open : matches. opt_present ( "open" ) } ,
577
578
"clean" => {
578
579
if !paths. is_empty ( ) {
579
580
println ! ( "\n clean does not take a path argument\n " ) ;
0 commit comments