@@ -282,12 +282,12 @@ impl Options {
282282 // check for deprecated options
283283 check_deprecated_options ( & matches, & diag) ;
284284
285- let to_check = matches. opt_strs ( "check-themes " ) ;
285+ let to_check = matches. opt_strs ( "check-theme " ) ;
286286 if !to_check. is_empty ( ) {
287287 let paths = theme:: load_css_paths ( static_files:: themes:: LIGHT . as_bytes ( ) ) ;
288288 let mut errors = 0 ;
289289
290- println ! ( "rustdoc: [check-themes ] Starting tests! (Ignoring all other arguments)" ) ;
290+ println ! ( "rustdoc: [check-theme ] Starting tests! (Ignoring all other arguments)" ) ;
291291 for theme_file in to_check. iter ( ) {
292292 print ! ( " - Checking \" {}\" ..." , theme_file) ;
293293 let ( success, differences) = theme:: test_theme_against ( theme_file, & paths, & diag) ;
@@ -358,15 +358,15 @@ impl Options {
358358 }
359359
360360 let mut themes = Vec :: new ( ) ;
361- if matches. opt_present ( "themes " ) {
361+ if matches. opt_present ( "theme " ) {
362362 let paths = theme:: load_css_paths ( static_files:: themes:: LIGHT . as_bytes ( ) ) ;
363363
364- for ( theme_file, theme_s) in matches. opt_strs ( "themes " )
364+ for ( theme_file, theme_s) in matches. opt_strs ( "theme " )
365365 . iter ( )
366366 . map ( |s| ( PathBuf :: from ( & s) , s. to_owned ( ) ) ) {
367367 if !theme_file. is_file ( ) {
368368 diag. struct_err ( & format ! ( "invalid file: \" {}\" " , theme_s) )
369- . help ( "option --themes arguments must all be files" )
369+ . help ( "option --theme arguments must all be files" )
370370 . emit ( ) ;
371371 return Err ( 1 ) ;
372372 }
@@ -384,7 +384,7 @@ impl Options {
384384 default theme", theme_s) )
385385 . warn ( "the theme may appear incorrect when loaded" )
386386 . help ( & format ! ( "to see what rules are missing, call `rustdoc \
387- --check-themes \" {}\" `", theme_s) )
387+ --check-theme \" {}\" `", theme_s) )
388388 . emit ( ) ;
389389 }
390390 themes. push ( theme_file) ;
0 commit comments