@@ -159,7 +159,9 @@ pub fn parse_config(args: Vec<String>) -> Config {
159
159
)
160
160
. optflag ( "" , "force-rerun" , "rerun tests even if the inputs are unchanged" )
161
161
. optflag ( "" , "only-modified" , "only run tests that result been modified" )
162
+ // FIXME: Temporarily retained so we can point users to `--no-capture`
162
163
. optflag ( "" , "nocapture" , "" )
164
+ . optflag ( "" , "no-capture" , "don't capture stdout/stderr of tests" )
163
165
. optflag ( "" , "profiler-runtime" , "is the profiler runtime enabled for this target" )
164
166
. optflag ( "h" , "help" , "show this message" )
165
167
. reqopt ( "" , "channel" , "current Rust channel" , "CHANNEL" )
@@ -288,6 +290,10 @@ pub fn parse_config(args: Vec<String>) -> Config {
288
290
) ;
289
291
} )
290
292
} ) ;
293
+ if matches. opt_present ( "nocapture" ) {
294
+ panic ! ( "`--nocapture` is deprecated; please use `--no-capture`" ) ;
295
+ }
296
+
291
297
Config {
292
298
bless : matches. opt_present ( "bless" ) ,
293
299
compile_lib_path : make_absolute ( opt_path ( matches, "compile-lib-path" ) ) ,
@@ -385,7 +391,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
385
391
target_cfgs : OnceLock :: new ( ) ,
386
392
builtin_cfg_names : OnceLock :: new ( ) ,
387
393
388
- nocapture : matches. opt_present ( "nocapture " ) ,
394
+ nocapture : matches. opt_present ( "no-capture " ) ,
389
395
390
396
git_repository : matches. opt_str ( "git-repository" ) . unwrap ( ) ,
391
397
nightly_branch : matches. opt_str ( "nightly-branch" ) . unwrap ( ) ,
0 commit comments