File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -122,12 +122,12 @@ struct Opts {
122
122
verbosity : usize ,
123
123
124
124
#[ structopt(
125
- help = "Arguments to pass to cargo during tests" ,
125
+ help = "Arguments to pass to cargo or the file specified by --script during tests" ,
126
126
multiple = true ,
127
127
last = true ,
128
128
parse( from_os_str)
129
129
) ]
130
- cargo_args : Vec < OsString > ,
130
+ command_args : Vec < OsString > ,
131
131
132
132
#[ structopt(
133
133
long = "start" ,
@@ -657,15 +657,16 @@ impl Toolchain {
657
657
Some ( ref script) => {
658
658
let mut cmd = Command :: new ( script) ;
659
659
cmd. env ( "RUSTUP_TOOLCHAIN" , self . rustup_name ( ) ) ;
660
+ cmd. args ( & cfg. args . command_args ) ;
660
661
cmd
661
662
}
662
663
None => {
663
664
let mut cmd = Command :: new ( "cargo" ) ;
664
665
cmd. arg ( & format ! ( "+{}" , self . rustup_name( ) ) ) ;
665
- if cfg. args . cargo_args . is_empty ( ) {
666
+ if cfg. args . command_args . is_empty ( ) {
666
667
cmd. arg ( "build" ) ;
667
668
} else {
668
- cmd. args ( & cfg. args . cargo_args ) ;
669
+ cmd. args ( & cfg. args . command_args ) ;
669
670
}
670
671
cmd
671
672
}
You can’t perform that action at this time.
0 commit comments