@@ -282,12 +282,12 @@ impl Options {
282
282
// check for deprecated options
283
283
check_deprecated_options ( & matches, & diag) ;
284
284
285
- let to_check = matches. opt_strs ( "check-themes " ) ;
285
+ let to_check = matches. opt_strs ( "check-theme " ) ;
286
286
if !to_check. is_empty ( ) {
287
287
let paths = theme:: load_css_paths ( static_files:: themes:: LIGHT . as_bytes ( ) ) ;
288
288
let mut errors = 0 ;
289
289
290
- println ! ( "rustdoc: [check-themes ] Starting tests! (Ignoring all other arguments)" ) ;
290
+ println ! ( "rustdoc: [check-theme ] Starting tests! (Ignoring all other arguments)" ) ;
291
291
for theme_file in to_check. iter ( ) {
292
292
print ! ( " - Checking \" {}\" ..." , theme_file) ;
293
293
let ( success, differences) = theme:: test_theme_against ( theme_file, & paths, & diag) ;
@@ -358,15 +358,15 @@ impl Options {
358
358
}
359
359
360
360
let mut themes = Vec :: new ( ) ;
361
- if matches. opt_present ( "themes " ) {
361
+ if matches. opt_present ( "theme " ) {
362
362
let paths = theme:: load_css_paths ( static_files:: themes:: LIGHT . as_bytes ( ) ) ;
363
363
364
- for ( theme_file, theme_s) in matches. opt_strs ( "themes " )
364
+ for ( theme_file, theme_s) in matches. opt_strs ( "theme " )
365
365
. iter ( )
366
366
. map ( |s| ( PathBuf :: from ( & s) , s. to_owned ( ) ) ) {
367
367
if !theme_file. is_file ( ) {
368
368
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" )
370
370
. emit ( ) ;
371
371
return Err ( 1 ) ;
372
372
}
@@ -384,7 +384,7 @@ impl Options {
384
384
default theme", theme_s) )
385
385
. warn ( "the theme may appear incorrect when loaded" )
386
386
. help ( & format ! ( "to see what rules are missing, call `rustdoc \
387
- --check-themes \" {}\" `", theme_s) )
387
+ --check-theme \" {}\" `", theme_s) )
388
388
. emit ( ) ;
389
389
}
390
390
themes. push ( theme_file) ;
0 commit comments