@@ -316,27 +316,20 @@ impl TestOpts {
316316/// Result of parsing the options.
317317pub type OptRes = Result < TestOpts , String > ;
318318
319+ #[ cfg_attr( rustfmt, rustfmt_skip) ]
319320fn optgroups ( ) -> Vec < getopts:: OptGroup > {
320- vec ! [ getopts:: optflag( "" , "ignored" , "Run ignored tests" ) ,
321- getopts:: optflag( "" , "test" , "Run tests and not benchmarks" ) ,
322- getopts:: optflag( "" , "bench" , "Run benchmarks instead of tests" ) ,
323- getopts:: optflag( "h" , "help" , "Display this message (longer with --help)" ) ,
324- getopts:: optopt( "" ,
325- "logfile" ,
326- "Write logs to the specified file instead of stdout" ,
327- "PATH" ) ,
328- getopts:: optflag( "" ,
329- "nocapture" ,
330- "don't capture stdout/stderr of each task, allow printing directly" ) ,
331- getopts:: optopt( "" ,
332- "color" ,
333- "Configure coloring of output:
334- auto = colorize if stdout \
335- is a tty and tests are run on serially (default);
336- always = \
337- always colorize output;
338- never = never colorize output;" ,
339- "auto|always|never" ) ]
321+ vec ! ( getopts:: optflag( "" , "ignored" , "Run ignored tests" ) ,
322+ getopts:: optflag( "" , "test" , "Run tests and not benchmarks" ) ,
323+ getopts:: optflag( "" , "bench" , "Run benchmarks instead of tests" ) ,
324+ getopts:: optflag( "h" , "help" , "Display this message (longer with --help)" ) ,
325+ getopts:: optopt( "" , "logfile" , "Write logs to the specified file instead \
326+ of stdout", "PATH" ) ,
327+ getopts:: optflag( "" , "nocapture" , "don't capture stdout/stderr of each \
328+ task, allow printing directly") ,
329+ getopts:: optopt( "" , "color" , "Configure coloring of output:
330+ auto = colorize if stdout is a tty and tests are run on serially (default);
331+ always = always colorize output;
332+ never = never colorize output;" , "auto|always|never" ) )
340333}
341334
342335fn usage ( binary : & str ) {
0 commit comments