@@ -43,6 +43,7 @@ pub struct Flags {
43
43
pub cmd : Subcommand ,
44
44
pub incremental : bool ,
45
45
pub exclude : Vec < PathBuf > ,
46
+ pub rustc_error_format : Option < String > ,
46
47
}
47
48
48
49
pub enum Subcommand {
@@ -118,6 +119,7 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`");
118
119
opts. optopt ( "" , "src" , "path to the root of the rust checkout" , "DIR" ) ;
119
120
opts. optopt ( "j" , "jobs" , "number of jobs to run in parallel" , "JOBS" ) ;
120
121
opts. optflag ( "h" , "help" , "print this help message" ) ;
122
+ opts. optflag ( "" , "error-format" , "rustc error format" ) ;
121
123
122
124
// fn usage()
123
125
let usage = |exit_code : i32 , opts : & Options , subcommand_help : & str , extra_help : & str | -> ! {
@@ -370,6 +372,7 @@ Arguments:
370
372
verbose : matches. opt_count ( "verbose" ) ,
371
373
stage,
372
374
on_fail : matches. opt_str ( "on-fail" ) ,
375
+ rustc_error_format : matches. opt_str ( "error-format" ) ,
373
376
keep_stage : matches. opt_str ( "keep-stage" ) . map ( |j| j. parse ( ) . unwrap ( ) ) ,
374
377
build : matches. opt_str ( "build" ) . map ( |s| INTERNER . intern_string ( s) ) ,
375
378
host : split ( matches. opt_strs ( "host" ) )
0 commit comments