File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,10 @@ To see all the flags the proxied tool accepts run `cargo-{} -- --help`.{}",
235
235
. long ( "target" )
236
236
. value_name ( "TRIPLE" )
237
237
. help ( "Target triple for which the code is compiled" ) ,
238
+ Arg :: new ( "config" )
239
+ . long ( "config" )
240
+ . value_name ( "CONFIG" )
241
+ . help ( "Override a configuration value" ) ,
238
242
Arg :: new ( "color" )
239
243
. long ( "color" )
240
244
. action ( ArgAction :: Set )
@@ -459,6 +463,12 @@ fn cargo_build_args<'a>(matches: &'a ArgMatches, cargo: &mut Command) -> (BuildT
459
463
cargo. arg ( package) ;
460
464
}
461
465
466
+ if let Some ( config) = matches. get_many :: < String > ( "config" ) {
467
+ for c in config {
468
+ cargo. args ( [ "--config" , c] ) ;
469
+ }
470
+ }
471
+
462
472
if let Some ( jobs) = matches. get_one :: < String > ( "jobs" ) {
463
473
cargo. arg ( "-j" ) ;
464
474
cargo. arg ( jobs) ;
You can’t perform that action at this time.
0 commit comments