@@ -280,12 +280,12 @@ impl Options {
280280 // check for deprecated options
281281 check_deprecated_options ( & matches, & diag) ;
282282
283- let to_check = matches. opt_strs ( "check-themes " ) ;
283+ let to_check = matches. opt_strs ( "check-theme " ) ;
284284 if !to_check. is_empty ( ) {
285285 let paths = theme:: load_css_paths ( static_files:: themes:: LIGHT . as_bytes ( ) ) ;
286286 let mut errors = 0 ;
287287
288- println ! ( "rustdoc: [check-themes ] Starting tests! (Ignoring all other arguments)" ) ;
288+ println ! ( "rustdoc: [check-theme ] Starting tests! (Ignoring all other arguments)" ) ;
289289 for theme_file in to_check. iter ( ) {
290290 print ! ( " - Checking \" {}\" ..." , theme_file) ;
291291 let ( success, differences) = theme:: test_theme_against ( theme_file, & paths, & diag) ;
@@ -360,15 +360,15 @@ impl Options {
360360 }
361361
362362 let mut themes = Vec :: new ( ) ;
363- if matches. opt_present ( "themes " ) {
363+ if matches. opt_present ( "theme " ) {
364364 let paths = theme:: load_css_paths ( static_files:: themes:: LIGHT . as_bytes ( ) ) ;
365365
366- for ( theme_file, theme_s) in matches. opt_strs ( "themes " )
366+ for ( theme_file, theme_s) in matches. opt_strs ( "theme " )
367367 . iter ( )
368368 . map ( |s| ( PathBuf :: from ( & s) , s. to_owned ( ) ) ) {
369369 if !theme_file. is_file ( ) {
370370 diag. struct_err ( & format ! ( "invalid file: \" {}\" " , theme_s) )
371- . help ( "option --themes arguments must all be files" )
371+ . help ( "option --theme arguments must all be files" )
372372 . emit ( ) ;
373373 return Err ( 1 ) ;
374374 }
@@ -386,7 +386,7 @@ impl Options {
386386 default theme", theme_s) )
387387 . warn ( "the theme may appear incorrect when loaded" )
388388 . help ( & format ! ( "to see what rules are missing, call `rustdoc \
389- --check-themes \" {}\" `", theme_s) )
389+ --check-theme \" {}\" `", theme_s) )
390390 . emit ( ) ;
391391 }
392392 themes. push ( theme_file) ;
0 commit comments