@@ -60,13 +60,13 @@ pub struct CargoNextestApp {
6060
6161impl CargoNextestApp {
6262 /// Executes the app.
63- pub fn exec ( self , output_writer : & mut OutputWriter ) -> Result < i32 > {
63+ pub fn exec ( self , cli_args : Vec < String > , output_writer : & mut OutputWriter ) -> Result < i32 > {
6464 #[ cfg( feature = "experimental-tokio-console" ) ]
6565 nextest_runner:: console:: init ( ) ;
6666
6767 match self . subcommand {
68- NextestSubcommand :: Nextest ( app) => app. exec ( output_writer) ,
69- NextestSubcommand :: Ntr ( opts) => opts. exec ( output_writer) ,
68+ NextestSubcommand :: Nextest ( app) => app. exec ( cli_args , output_writer) ,
69+ NextestSubcommand :: Ntr ( opts) => opts. exec ( cli_args , output_writer) ,
7070 #[ cfg( unix) ]
7171 NextestSubcommand :: DoubleSpawn ( opts) => opts. exec ( ) ,
7272 }
@@ -99,7 +99,7 @@ impl AppOpts {
9999 /// Execute the command.
100100 ///
101101 /// Returns the exit code.
102- fn exec ( self , output_writer : & mut OutputWriter ) -> Result < i32 > {
102+ fn exec ( self , cli_args : Vec < String > , output_writer : & mut OutputWriter ) -> Result < i32 > {
103103 let output = self . common . output . init ( ) ;
104104
105105 match self . command {
@@ -138,6 +138,7 @@ impl AppOpts {
138138 run_opts. no_capture ,
139139 & run_opts. runner_opts ,
140140 & run_opts. reporter_opts ,
141+ cli_args,
141142 output_writer,
142143 ) ?;
143144 Ok ( 0 )
@@ -372,7 +373,7 @@ struct NtrOpts {
372373}
373374
374375impl NtrOpts {
375- fn exec ( self , output_writer : & mut OutputWriter ) -> Result < i32 > {
376+ fn exec ( self , cli_args : Vec < String > , output_writer : & mut OutputWriter ) -> Result < i32 > {
376377 let output = self . common . output . init ( ) ;
377378
378379 let base = BaseApp :: new (
@@ -389,6 +390,7 @@ impl NtrOpts {
389390 self . run_opts . no_capture ,
390391 & self . run_opts . runner_opts ,
391392 & self . run_opts . reporter_opts ,
393+ cli_args,
392394 output_writer,
393395 ) ?;
394396 Ok ( 0 )
@@ -1523,6 +1525,7 @@ impl App {
15231525 no_capture : bool ,
15241526 runner_opts : & TestRunnerOpts ,
15251527 reporter_opts : & TestReporterOpts ,
1528+ cli_args : Vec < String > ,
15261529 output_writer : & mut OutputWriter ,
15271530 ) -> Result < ( ) > {
15281531 let ( version_only_config, config) = self . base . load_config ( ) ?;
@@ -1606,6 +1609,7 @@ impl App {
16061609 let runner = runner_builder. build (
16071610 & test_list,
16081611 & profile,
1612+ cli_args,
16091613 handler,
16101614 double_spawn. clone ( ) ,
16111615 target_runner. clone ( ) ,
0 commit comments